PDA

View Full Version : how to parse xml with a image using qt?



bezlew
3rd November 2009, 02:07
i send a request to server, and it gives me back a xml:
<xml>
<sender time="1257148966" subject="Web Upload" email="www.ksjddff.com Web" />
<image type="" bin="" />
</xml>

there is a image's binary file in the attribute "bin", and i get no idea how to parse it and save to local disk.
i tried to use class QXmlStreamReader, but it doesn't work.
Is there another way?
thank you for your help!

wysota
3rd November 2009, 09:04
Use QDomDocument, it's much more convinient to use.