How to Parse This Xml formate Using TinyXML

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nishant444jain
    New Member
    • May 2010
    • 1

    How to Parse This Xml formate Using TinyXML

    I am not able to read node value means
    <chooseSpot>1 </chooseSpot>
    I want to store this value to One String

    Code:
    <spots>
    <spot id="50">
    <chooseSpot>1</chooseSpot>
    <city>Stockholm</city>
    <country>Sweden</country>
    <isDeleted>false</isDeleted>
    <latitude>59.3250662</latitude>
    <longitude>18.0703388</longitude>
    <spot_address>10 Gamlastan</spot_address>
    </spot>
    <spot id="52">
    <chooseSpot>1</chooseSpot>
    <city>Stockholm</city>
    <country>Sweden</country>
    <isDeleted>false</isDeleted>
    <latitude>59.3250662</latitude>
    <longitude>18.0703388</longitude>
    <spot_address>Kungsgatan 12</spot_address>
    </spot>
    <spot id="56">
    <chooseSpot>1</chooseSpot>
    <city>Stockholm</city>
    <country>Sweden</country>
    <isDeleted>false</isDeleted>
    <latitude>59.3431118</latitude>
    <longitude>18.0515504</longitude>
    <spot_address>Vasastaden</spot_address>
    <spotName>Catch 22</spotName>
    </spot>
    <spots>
    Last edited by Niheel; May 25 '10, 03:40 PM. Reason: please use code tags, proper grammar and punctuation
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    What do the TinyXML support pages say? Do they have a tutorial?

    Comment

    • jkmyoung
      Recognized Expert Top Contributor
      • Mar 2006
      • 2057

      #3
      Could you be more specific as to your problem?
      1. Can you read anything from the file?
      2. Can you read other nodes in the file?
      3. What is the code you are using to try to read this value?
      4. Are you having troubles getting/copying the value from the node?

      Comment

      Working...