PDA

View Full Version : XML advice



stefan
24th December 2011, 13:42
Hi all!

I'm trying to implement xmr write/read system for my data classes.
On few occasions I already used QXmlStreamWriter and QXmlStreamReader but this is more serious and long term project thus I would like consider alternatives.
Particularly, I have in mind QDom module. Data that we will work with is both "wide" and "deep".

What would you suggest?

Lykurg
24th December 2011, 14:12
In the end, I think it is just a decision about what you like more.

In my project I use QDom* and represent all XML-content in classes. Thus each class also have a readFromXML and writeToXML function with a QDomNode or QDomElement parameter. With that approach I am very happy.

If you don't need that your files are user readable and editable. I would also consider to use QDataStream direct, which is much faster than using XML.