1This example shows how to use the optional wildcard mapping provided 2by C++/Tree to parse, access, modify, and serialize the XML data 3matched by XML Schema wildcards (any and anyAttribute). For an 4alternative approach that employes type customization see the 5custom/wildcard example. 6 7The example consists of the following files: 8 9email.xsd 10 XML Schema which describes a simple email format with the 11 extensible envelope type. 12 13email.xml 14 Sample email message. 15 16email.hxx 17email.ixx 18email.cxx 19 C++ types that represent the given vocabulary, a set of parsing 20 functions that convert XML instance documents to a tree-like in-memory 21 object model, and a set of serialization functions that convert the 22 object model back to XML. These are generated by XSD from email.xsd. 23 Note that the --generate-wildcard option is used to request the 24 wildcard mapping. 25 26driver.cxx 27 Driver for the example. It first calls one of the parsing functions 28 that constructs the object model from the input file. It then prints 29 the content of the object model to STDERR. Next the driver creates a 30 reply email which is then serialized to XML. 31 32To run the example on the sample XML instance document simply execute: 33 34$ ./driver email.xml 35