[Qt-interest] XML parsing library in Qt

Gabriel Beddingfield gabrbedd at gmail.com
Thu Nov 25 23:31:55 CET 2010


On Thu, Nov 25, 2010 at 4:21 PM, Vladimir Barbarosh
<vladimir.barbarosh at gmail.com> wrote:
>>> Is *libqt4-xml* equivalent of *libxml2* with respect to *XML* parsing ?
>>> I hope I am not barking at the wrong tree.
>>
>> No. QtXml is the DOM and SAX API. We recommend people don't use that.
>
> Why then they are exist? (I never work with XML at the past, although have
> plans to study it. So, I just curious about why they are exist but I
> must not use them?)

They exist because they existed before the newer classes.  These DOM
and SAX API's conform to the W3C Standards.

Don't use them because you'll probably be more productive and get
better performance using the newer classes.  The standard API's tend
to be un-fun programming and hard to implement.  Further, the
"standard API" doesn't make them as portable as everyone hoped in the
beginning.

-gabriel



More information about the Qt-interest-old mailing list