Unsolved State of QtXml
-
I've just noticed that in the past QtXml was once marked as deprecated but since then that decision was reverted and instead QtXml was "in Done state and will receive no new features. In Qt 6, it may be outside of the Essentials."
Here's a source:
https://bugreports.qt.io/browse/QTBUG-32926Having this in mind, does anyone know what's the suggested method to handle XML documents in Qt?
-
@rmam said in State of QtXml:
does anyone know what's the suggested method to handle XML documents in Qt?
Well, QtXML I would say. It is not deprecated and will not be deprecated in Qt6.
-
We switched from QtXML to PugiXML in relatively simply. As a bonus, Pugixml is a ton faster. Here's the xml export class which derived from QtXmlStreamWriter and was rejigged to work with Pugixml.
-
QtXml will probably never die due to clients of Qt using it
@rmam said in State of QtXml:
does anyone know what's the suggested method to handle XML documents in Qt?
QXmlStreamReader
andQXmlStreamWriter
from Qt core.An alternative in active development is
boost::property_tree
: https://www.boost.org/doc/libs/1_67_0/doc/html/property_tree/tutorial.html -
+1 for PugiXML
Best parser i ever used and super nice API.
Even being a DOM parser its very fast and as added bonus comes with
XPath build in. -
Does anyone happen to know how pugixml fares when compared with POCO XML?
-
hi
I found the APIs very similar and would say if you already are using POCO, no reason to
use pugixml. I did not not speed test compare them though.