473,549 Members | 2,616 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to Parse This Xml formate Using TinyXML

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

Expand|Select|Wrap|Line Numbers
  1. <spots>
  2. <spot id="50">
  3. <chooseSpot>1</chooseSpot>
  4. <city>Stockholm</city>
  5. <country>Sweden</country>
  6. <isDeleted>false</isDeleted>
  7. <latitude>59.3250662</latitude>
  8. <longitude>18.0703388</longitude>
  9. <spot_address>10 Gamlastan</spot_address>
  10. </spot>
  11. <spot id="52">
  12. <chooseSpot>1</chooseSpot>
  13. <city>Stockholm</city>
  14. <country>Sweden</country>
  15. <isDeleted>false</isDeleted>
  16. <latitude>59.3250662</latitude>
  17. <longitude>18.0703388</longitude>
  18. <spot_address>Kungsgatan 12</spot_address>
  19. </spot>
  20. <spot id="56">
  21. <chooseSpot>1</chooseSpot>
  22. <city>Stockholm</city>
  23. <country>Sweden</country>
  24. <isDeleted>false</isDeleted>
  25. <latitude>59.3431118</latitude>
  26. <longitude>18.0515504</longitude>
  27. <spot_address>Vasastaden</spot_address>
  28. <spotName>Catch 22</spotName>
  29. </spot>
  30. <spots>
May 25 '10 #1
2 1873
RedSon
5,000 Recognized Expert Expert
What do the TinyXML support pages say? Do they have a tutorial?
May 25 '10 #2
jkmyoung
2,057 Recognized Expert Top Contributor
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?
May 25 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

8
1498
by: john_tipton | last post by:
Hello, I am an artist working out of Los Angeles, and I have a project I've been working on which may need MySQL and or PHP. I put an advert in the local paper asking readers to leave a message on a vonage voicemail number. I've received about 60 messages so far. People have left some pretty interesting stuff without knowing what the...
3
1877
by: Guy Robinson | last post by:
I have the code below which parses an expression string and creates tokens. Can anyone suggest the best of error checking for things like: Valid variable only obj.attribute -whitespace allowed test( "ff*2/dd.r..ss r") #additional ..ss -invalid variable. test( "ff*$24..55/ddr") #double .. and $ -invalid number test( "ff*2/dd.r.ss...
8
1869
by: anilby | last post by:
Hi, I wanted to write a script that will read the below file: <abcd label="ABC"> .. <efg label="EFGA"> ..... <decg label="ABDG"> ...
2
4147
by: Owen | last post by:
If my url is, say, http://mysite/mypage.asp?fruit=apples&veg=cabbages&sweet=cake, then how do I get the value of "fruit", "veg" and "sweet" params using clientside javascript? In ASP I can use Request.Querystring("fruit") etc, but I need to get it using clientside javascript this time. Help?
10
1623
by: yawnmoth | last post by:
I have two servers that have had PHP installed on them and... <?php echo 'hello, world! ?> ....displays a parse error on server A and doesn't display anything on server B. Any ideas as to what the problem is?
0
3071
Meetee
by: Meetee | last post by:
Hi.. I have created an XML file which contains username and password. I want to parse this XML file so that username and password can be stored in database. I am using TinyXML and want to parse the file. I am C++ programmer but new at XML. I have referred TinyXML classes and files. Please guide me! Regards
5
1674
by: jonathan184 | last post by:
how to parse data to an html page from XML file checking a DTD file I have a XML file and a DTD file. How could i parse this using either php or perl or another language you recommend.
0
1108
by: reachurajay | last post by:
Hi all, I want to create a parse tree to tag the reference part separately. The reference part contains first name, last name, book title, edition number, book volume number, book page number, etc... my input comes as a string while the string contains all reference parts combined together like, "McMahon, H., and J. L. Gallop....
9
26379
by: abhishekltil | last post by:
hello, can you please help me in reading this sample xml using tinyxml library. <?xml version="1.0" encoding="ISO-8859-1"?> <Configuration> <Parameter name="loglevel" value="3"/> <Parameter name="newparam" value="some value"/> <Process Name="osis">
0
1861
by: modykun | last post by:
Reading an XML here is a must for my need I have to say though that i don't have any previous XML experience , so I'm not sure how to make it read it I'm using TinyXML , because i need fast code just to load the information from an XML file . so anyway , this is how my XML file looks like: <?xml version="1.0" ?> <Rects> <Rect x="0"...
0
7532
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7730
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7975
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7492
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7823
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6059
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5381
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3510
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1957
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.