Solved

XML C++ Parser

Posted on 2004-04-07
6
414 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
Comment Utility
0
 
LVL 4

Author Comment

by:PerryDK
Comment Utility
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
Comment Utility
Also do you know of any open source C++ xml parsers that I may look at for references?
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 45

Expert Comment

by:sunnycoder
Comment Utility
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
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Exchange and Third Party application. 8 59
mergeTwo  challenge 13 71
Python Encoding Problem \u2013 4 84
find a node in VST 2 46
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

763 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

11 Experts available now in Live!

Get 1:1 Help Now