Solved

XML C++ Parser

Posted on 2004-04-07
6
419 Views
Last Modified: 2013-11-18
I'm sure there is some free XML C++ ANSI standard compliant XML parser out there but I'd like to write my own.

Can someone give me a link or something that provides the exact syntax that an XML document may have.

In particular I'm interested in how to define data with quotes.  And data that may contain brackets < and >.  How are they actually defined.  I know every begin tag must match an end tag, but what if that data in the middle contains a bracket or quote...how exactly is that specified in the XML syntax.  

All possible variations of syntax are prefered.

Basically I'd like to store things in a std::list<std::string> recursively.  

If you need more info to answer the question please ask.
0
Comment
Question by:PerryDK
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 45

Expert Comment

by:sunnycoder
ID: 10781234
0
 
LVL 4

Author Comment

by:PerryDK
ID: 10781253
can you provide examples of how brackets ( < or >) and quotes ( " or ') may be included for actually data instead of refering to the tag?
0
 
LVL 4

Author Comment

by:PerryDK
ID: 10781261
Also do you know of any open source C++ xml parsers that I may look at for references?
0
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 
LVL 45

Expert Comment

by:sunnycoder
ID: 10781292
libxml
http://www.xmlsoft.org/

has plenty of links and you will find everything  you need at the above link
0
 
LVL 4

Author Comment

by:PerryDK
ID: 10781450
I went to http://www.xmlsoft.org/

Can you tell which file to download.  I'm using windows xp with Borland C++ Builder 5.0 compiler.
0
 
LVL 45

Accepted Solution

by:
sunnycoder earned 500 total points
ID: 10781491
ftp://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/

has the sources .... But I am not sure if a windows port exists ... these are linux libraries ... still take a look .... Difference should not be too much

here is the windows version
http://sourceforge.net/projects/wix/

The above is officially from MS
http://blogs.msdn.com/robmen/archive/2004/04/05/107709.aspx
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an explanation of a simple data model to help parse a JSON feed
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question