XML serialiizer/deserializer for CONTROL

Find and share HowTos to various installations / configurations!
4 posts • Page 1 of 1
glenj
Posts:3
Joined: Sun Sep 20, 2015 7:56 pm

XML serialiizer/deserializer for CONTROL

Post by glenj »

I'm working with XML files and I was wondering if serialization/deserialization of XML is available. I see that there are routines to implement using XML DOM, but I would prefer to use serialization if it is available.

https://en.wikipedia.org/wiki/Serialization

Can anybody point in the right direction for an XML serialization library for CONTROL?

TIA,

Glen

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: XML serialiizer/deserializer for CONTROL

Post by mkoller »

This is unclear. XML is plain text, so it is already serialized.
As you mention not wanting DOM, are you probably talking about streaming ?
If so, In CTRL there is currently no other way to read XML than reading it into a DOM tree.
You can of course implement your own CTRL extension in C++.
If you want to go that way, have a look at the Qt library for this:
http://doc.qt.io/qt-5/qxmlstreamreader.html

glenj
Posts:3
Joined: Sun Sep 20, 2015 7:56 pm

Re: XML serialiizer/deserializer for CONTROL

Post by glenj »

Martin,

Thank you for your reply. I did use the XML Control extension. I was looking for something such as this:

https://en.wikipedia.org/wiki/Serialization

Sorry if I was not clear in my original question.

Yours,

Glen

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: XML serialiizer/deserializer for CONTROL

Post by mkoller »

This is what I said above. XML _is_ already a streamed format.
It's still not clear for me what you are looking for.
Maybe you can give a more concrete example

4 posts • Page 1 of 1