blob: b6993d93a1b7e994b8ba3148c777b3d3aeb485b5 (plain
This directory contains a number of examples that show how to use
the C++/Tree mapping. The following list gives an overview of
each example. See the README files in example directories for
more information on each example.
A simple "Hello, world!" example that shows how to parse XML
Shows hot to handle more complex data structures, use the
ID/IDREF cross-referencing mechanism, use the xsd:enumeration
to C++ enum mapping, modify the object model, and serialize
the modified object model back to XML.
Shows how to use XML Schema polymorphism features such as the
xsi:type attribute and substitution groups.
Shows how to use the C++/Tree mapping together with XPath.
Shows how to use the optional wildcard mapping to parse, access,
modify, and serialize the XML data matched by XML Schema wildcards
(any and anyAttribute).
Shows how to access the underlying DOM nodes to handle raw, "type-
less content" such as mixed content models, anyType/anySimpleType,
Shows how to handle XML vocabularies with multiple root elements.
See also the messaging example.
Shows how to handle XML vocabularies with multiple root elements
using the element type and element map features of the C++/Tree
Shows how to parse several XML documents while reusing the
underlying XML parser and caching the schemas used for validation.
Measures the performance of parsing and serialization. This example
also shows how to structure your code to achieve the maximum
performance for these two operations.
A collection of examples that show how to customize the C++/Tree
mapping by using custom C++ classes instead of or in addition to
the generated ones. See the accompanying README file for an
overview of each example in this directory.
Shows how to perform stream-oriented, partially in-memory XML
processing using the C++/Tree mapping. With the partially in-memory
parsing and serialization only a part of the object model is in
memory at any given time. With this approach we can process parts
of the document as they become available as well as handle documents
that are too large to fit into memory.
A collection of examples that show how to serialize the object model
into a number of predefined and custom binary formats.
Shows how to use the C++/Tree mapping on top of the Berkeley DB
XML embedded XML database.