XmlParser is a lightweight open source C++ library based on Apache's Xerces C++ Parser

Post date: May 4, 2011 4:05:09 AM

eIntroduction

XmlParser is a lightweight open source C++ library based on Apache's Xerces C++ Parser. XmlParser contains only two files (one .cpp and one .h) and provides simple API for parsing XML files. XmlParser supports charsets such as GB2312.

Downloads and Installation

Copyright

Downloading, installing or using XmlParser (the software) signifies acceptance of these terms and conditions of the license.

A lightweight Tutorial

The concept of XML and DTD is beyond the scope of this tutorial. A good introduction to XML, DTD and XSLT can be found at http://www.w3schools.com/.

This zip file contains the Visual C++ project and sample data of this tutorial.

Suppose we have the following DTD and XML file for a contact list.


The DTD file

The XML file

We want to write C++ code to print out this contact list in plain text. We will do the following steps:

-Courtesy http://vipbase.net/xmlparser/