Click here to Skip to main content
13,093,245 members (75,393 online)
Click here to Skip to main content

Stats

140K views
2.6K downloads
77 bookmarked
Posted 23 Jul 2005

Parsing XML using a C++ wrapper for SAX2

, 3 Aug 2005
A basic C++ wrapper framework for the MSXML SAX2 API is presented.
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <xsd:element name="catalog">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="book" minOccurs="0" maxOccurs="unbounded">
          <xsd:complexType>
            <xsd:sequence>
              <xsd:element name="author" type="xsd:string"/>
              <xsd:element name="title" type="xsd:string"/>
              <xsd:element name="genre" type="xsd:string"/>
              <xsd:element name="price" type="xsd:float"/>
              <xsd:element name="publish_date" type="xsd:date"/>
              <xsd:element name="description" type="xsd:string"/>
            </xsd:sequence>
            <xsd:attribute name="id" type="xsd:string"/>
          </xsd:complexType>
        </xsd:element>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

nschan
Web Developer
Canada Canada
No Biography provided

You may also be interested in...

Pro
Pro
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170813.1 | Last Updated 4 Aug 2005
Article Copyright 2005 by nschan
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid