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. Need Help understanding XML Processing
QtWS25 Last Chance

Need Help understanding XML Processing

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 694 Views
  • 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.
  • F Offline
    F Offline
    FabianH
    wrote on last edited by
    #1

    Hello,

    I need my program to read data from another program. The emiting program writes the Data to an xml File. I never worked with xml before and cant figure out how to read it. The file offers this

    <result>
    <id>3939</id>
    <desc>Slope 33 3 x 6</desc>
    <score>0.201919</score>
    </result>

    How can i read out the 3939 of section id?
    Also i liked to know whether my english can be understood or not :-)

    I hope, someone can help me

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      welcome to devnet

      There are a couple of "Qt examples handling xml.":http://qt-project.org/doc/qt-5.0/qtdoc/examples-xml.html

      Roughly summarized xml uses tags embracing the information. The opening tag id starts with'<' and ends with the next '>'. The closing tag starts with'</' and ends with '>'.
      However, I guess you have figured it out as far anyhow.
      See more details in "wikipedia":http://en.wikipedia.org/wiki/XML_Schema_(W3C)

      BTW Your English is excellent :-)
      There are only some native English speakers and most of us fight with English anyway ;-)

      Vote the answer(s) that helped you to solve your issue(s)

      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