Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QXmlStreamReader help
Forum Updated to NodeBB v4.3 + New Features

QXmlStreamReader help

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 996 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Imhotep
    wrote on last edited by
    #1

    I created this xml file with QXmlStreamWriter:

    <?xml version=“1.0” encoding=“UTF-8”?>
    <Draw>
    <Input>
    <Column title=“A”/>
    <Column title=“B”/>
    <Column title=“C”/>
    <Column title=“D”>
    <item id=“0”>Bayer Leverkusen</item>
    <item id=“1”>Benfica</item>
    <item id=“2”>Villareal</item>
    <item id=“3”>Montpellier</item>
    </Column>
    </Input>
    </Draw>

    I would like to create a Vector of String containing all the items inside the tag <Column title="D">: Now, I know how to create a QVector and how they fit elements on the inside, I just have to figure out how I can do this by extrapolating information from an xml file.

    Can you help me?

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi,

      I'm not quite sure what you're asking.

      Do you want help with writing more things to your XML file? Or do you want help on reading the file?

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • I Offline
        I Offline
        Imhotep
        wrote on last edited by
        #3

        Sorry, I made a mistake writing the title. I need help to read the file, since I have not found very clear examples on the net.

        1 Reply Last reply
        0
        • P Offline
          P Offline
          prady_80
          wrote on last edited by
          #4

          Here is one that can help, although old it is still the same...
          http://developer.nokia.com/community/wiki/QXmlStreamReader_to_parse_XML_in_Qt

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved