Results 1 to 2 of 2

Thread: How to read the xml file using QXmlStreamReader

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2013
    Posts
    43
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How to read the xml file using QXmlStreamReader

    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>
    Last edited by mythili; 7th June 2013 at 13:47.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to read the xml file using QXmlStreamReader

    How does your code look so far? where do you have a problem?

    Cheers,
    _

Similar Threads

  1. Reading and rereading a file with QXmlStreamReader
    By TheRonin in forum Qt Programming
    Replies: 14
    Last Post: 30th April 2015, 15:04
  2. Replies: 1
    Last Post: 1st August 2012, 10:56
  3. Read contents from the file using QHTTP Read()?
    By Gokulnathvc in forum Newbie
    Replies: 2
    Last Post: 21st June 2011, 09:03
  4. QXmlStreamReader - read a sub document
    By elcuco in forum Qt Programming
    Replies: 3
    Last Post: 23rd May 2010, 16:44
  5. Replies: 3
    Last Post: 3rd April 2010, 21:35

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.