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
XML serialiizer/deserializer for CONTROL
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: XML serialiizer/deserializer for CONTROL
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
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
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
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
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
It's still not clear for me what you are looking for.
Maybe you can give a more concrete example