Using Qt's XML library for simple operation
Posted
by David Powers
on Stack Overflow
See other posts from Stack Overflow
or by David Powers
Published on 2010-04-27T09:24:54Z
Indexed on
2010/04/27
9:33 UTC
Read the original article
Hit count: 300
I basically want to use the XML parser from Qt in my existing project. I have only used Qt once before, and that was with Qt Designer, and I am not having much luck finding anything on Google about how to just use the XML library.
I have downloaded a web page that has one large list, and I want to parse it and add each list item to a c++ list. I found this sample code on Ubuntu forums...
http://www.uluga.ubuntuforums.org/showpost.php?p=9112973&postcount=6
I want to use that except I need to know what exactly I need to add to the project to get access to it.
One other small question is QDomDocument seems to be for files (makes sense) but I have the XML in a string. What part of the XML library works for contents of a string?
© Stack Overflow or respective owner