path: root/examples/cxx/parser/multiroot/README
diff options
authorKaren Arutyunov <>2020-12-18 18:48:46 +0300
committerKaren Arutyunov <>2021-02-25 13:45:48 +0300
commit5e527213a2430bb3018e5eebd909aef294edf9b5 (patch)
tree94de33c82080b53d9a9e300170f6d221d89078f4 /examples/cxx/parser/multiroot/README
parent7420f85ea19b0562ffdd8123442f32bc8bac1267 (diff)
Switch to build2
Diffstat (limited to 'examples/cxx/parser/multiroot/README')
1 files changed, 0 insertions, 51 deletions
diff --git a/examples/cxx/parser/multiroot/README b/examples/cxx/parser/multiroot/README
deleted file mode 100644
index 041dfec..0000000
--- a/examples/cxx/parser/multiroot/README
+++ /dev/null
@@ -1,51 +0,0 @@
-This example shows how to handle XML vocabularies with multiple
-root elements using the C++/Parser mapping.
-The example consists of the following files:
- XML Schema which defines a simple bank account protocol with
- requests such as withdraw and deposit.
- Sample XML instances for the protocol requests.
- C++ types that describe the protocol requests. These are
- hand-written.
- Type map. It maps XML Schema types defined in protocol.xsd
- to the C++ types defined in protocol.hxx.
- Parser skeletons generated by XSD from protocol.xsd and
- Parser implementations that construct the custom object
- model from an XML instance using the types from protocol.hxx.
- These are hand-written implementations of the parser skeletons
- defined in protocol-pskel.hxx.
- Driver for the example. It implements a custom document parser
- that determines which request is being parsed and uses the
- corresponding parser implementation. The document parser
- intentionally does not support the deposit request to show
- how to handle unknown documents. The driver first constructs
- a parser instance from all the individual parsers found in
- protocol-pimpl.hxx. In then invokes this parser instance to
- parse the input file and produce the in-memory object model.
- Finally, it prints the contents of the object model to STDERR.
-To run the example on the sample XML request documents simply
-$ ./driver balance.xml
-$ ./driver withdraw.xml
-$ ./driver deposit.xml