PDA

View Full Version : How to read the xml file using QXmlStreamReader



mythili
7th June 2013, 11:35
Hi I am having xml file. I want to read all the Id’s from <Qu Id = > and the file names inside the tag ‘file’.Please help me.

My xml file is

<Response>
<Qu Id="1">
<An_Pas>
<file>Q1P1.png</file>
<file>Q1P2.png</file>
</An_Pas>
<Ro_pas>
<file>Q1R1.png</file>
</Ro_pas>
</Qu>
<Qu Id="2">
<An_Pas>
<file>Q2P1.png</file>
</An_Pas>
<Ro_pas>
<file>Q2R1.png</file>
<file>Q2R2.png</file>
</Ro_pas>
</Qu>
</Response>

anda_skoa
7th June 2013, 17:17
How does your code look so far? where do you have a problem?

Cheers,
_