Qt-interest Archive, April 2008
QtXml weak points
Message 1 in thread
Hello all,
I'm really a Qt/KDE fan. When talking about Qt, I like it a lot:
multiplatform, integrated, completeness, intuitive, good architecture
and good performance.
But when talking about the QtXml it a lot of times had disappointed me
and also a lot of people. Lately, I've just discovered that there
ins't another important feature: search for element by id. That really
makes it almost unusable for complex XML!
Here follows a list of features that I think Qt's XML miss:
- Search elements by ID
- DTD validation
- Schema validation
- Associate user data for each node (like QVariant QGraphicsItem::data
( int key ))
(not so important, could use QMap for that)
Some of these just go oposite to Trolltech's logo: Create mode. Code
less. Writing a validator by hand cost hundreds of lines for a simple
XML!
These things, which one can say it is not so simple to implement,
really would make a huge different in QtXml. In fact, to workaround
that many users just use Xerces or libxml2 instead of QtXml, but it
has the enormous disadvantage of not being integrated to Qt data types
(like string sharing).
I knew recently that Qt's 4.4 Xml module gained XPath and XQuery
support, which are really nice. But the module still miss a lot of
basic things, so these new features doesn't really make it more
valuable.
So, all this just to ask: Are these enumerated features planned to be
supported? If so, already planned to some version?
Sorry for the bad english :(
Gratefully,
brÃulio