Solved

XML C++ Parser

Posted on 2004-04-07
6
415 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
  • 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
topping3 challenge 14 70
How to get boolean result of md5sum from two files in powershell 8 72
What is Python programming? 3 103
recursion example 16 112
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
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.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

867 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now