diff options
| author | Jörg Frings-Fürst <debian@jff.email> | 2024-03-06 10:24:46 +0100 | 
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff.email> | 2024-03-06 10:24:46 +0100 | 
| commit | 372a0e99c2f61543d9e14d9933b59d9d1f4cb26e (patch) | |
| tree | bbadf39aed0610c8f8f7b41fefff47773b8ac205 /xsd/examples/cxx/parser/multiroot/README | |
| parent | 23d41842168ac1a1580111b9c5c73500ceee3d57 (diff) | |
| parent | 4538829ab86b5a1cd4e845e7eab165029c9d6d46 (diff) | |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'xsd/examples/cxx/parser/multiroot/README')
| -rw-r--r-- | xsd/examples/cxx/parser/multiroot/README | 51 | 
1 files changed, 0 insertions, 51 deletions
| diff --git a/xsd/examples/cxx/parser/multiroot/README b/xsd/examples/cxx/parser/multiroot/README deleted file mode 100644 index 041dfec..0000000 --- a/xsd/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: - -protocol.xsd -  XML Schema which defines a simple bank account protocol with -  requests such as withdraw and deposit. - -balance.xml -withdraw.xml -deposit.xml -  Sample XML instances for the protocol requests. - -protocol.hxx -  C++ types that describe the protocol requests. These are -  hand-written. - -protocol.map -  Type map. It maps XML Schema types defined in protocol.xsd -  to the C++ types defined in protocol.hxx. - -protocol-pskel.hxx -protocol-pskel.cxx -  Parser skeletons generated by XSD from protocol.xsd and -  protocol.map. - -protocol-pimpl.hxx -protocol-pimpl.cxx -  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.cxx -  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 -execute: - -$ ./driver balance.xml -$ ./driver withdraw.xml -$ ./driver deposit.xml | 
