[Qt-interest] what is the best approach to parse xml data to make it as generic as possible

Jason H scorp1us at yahoo.com
Fri Apr 23 21:58:11 CEST 2010


Qt provides 3 
DOM (slow, memory hungry, but you can modify the XML)
SAX (fast, light)
StreamReader (part of QtCore)

I'd probably use a 4th though, and that is XQuery to take complicated, raw XML and convert it to a simplified format, which is then read back via stream reader. 




________________________________
From: Meir Yanovich <meiry242 at gmail.com>
To: qt-interest at trolltech.com
Sent: Thu, April 22, 2010 4:50:24 AM
Subject: [Qt-interest] what is the best approach to parse xml data to make it as generic as possible


Hello all
im to find good and affective way to parse xml data structure that different API calls are returning 
the problem is that each time i need different data and each time im getting different xml structure
now what is the best way to use the SAX approach or The DOM approach and how does QT 4.6 
recommends to implement such scenario ? 
Thanks 



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100423/0d4370c6/attachment.html 


More information about the Qt-interest-old mailing list