?
Solved

XML C++ Parser

Posted on 2004-04-07
6
Medium Priority
?
420 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Introduction to Processes
Starting up a Project
Suggested Courses

770 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