[Qt-interest] Was XML parsing library in Qt - XPath/Qt

Jason H scorp1us at yahoo.com
Tue Nov 30 18:19:07 CET 2010


I once wrote a custom XPath parser (limited functionality)

It's not hard to use with the DOM stuff. And I wrote one using a custom parser 
using stream readers as well. Both only took a couple K of RAM beyond the 
library requirements. The stream reader was smallest over-all because no QtXML 
library was needed.




----- Original Message ----
From: Tim O'Callaghan <tocallaghan at meyn.net>
To: qt-interest at trolltech.com
Sent: Tue, November 30, 2010 2:54:58 AM
Subject: Re: [Qt-interest] Was XML parsing library in Qt - XPath/Qt

On 11/25/2010 05:04 PM, Thiago Macieira wrote:
> Em Quinta-feira, 25 de Novembro de 2010, às 12:23:16, Anisha Kaul escreveu:
>> Hello to all,
>>
>> The question is :
>>
>> 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.
>
> Instead, please use QXmlStreamReader and QXmlStreamWriter, which are in
> QtCore. They are a bit more complex to use, but they are *much* faster and use
> a lot less memory.
>

As a side question, Is there another XPath implementation other than 
QtXmlPatterns? or some other way of bringing down the target library size?

Tim.
-- 
Tim O'Callaghan
Research &  Development
MEYN - Food Processing Technology B.V.
Noordeinde 68 - 1511 AE Oostzaan - The Netherlands
Phone: +31 756 84 3355 | Fax: +31 756 84 4150| E-mail: 
tocallaghan at meyn.net  | Web: http://www.meyn.nl
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest



      




More information about the Qt-interest-old mailing list