Need Help understanding XML Processing



  • 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


  • Moderators

    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 ;-)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.