473,406 Members | 2,390 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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

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 1870
RedSon
5,000 Expert 4TB
What do the TinyXML support pages say? Do they have a tutorial?
May 25 '10 #2
jkmyoung
2,057 Expert 2GB
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
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...
3
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...
8
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
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...
10
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...
0
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...
5
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
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,...
9
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"/>...
0
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...

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.