diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-03-16 08:16:43 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-03-16 08:16:43 +0200 |
commit | bce9d5a76072ec697ef69021818aa68709036da5 (patch) | |
tree | 9ec56eff60abacaea121d1602a1e48388ca34216 /examples/cxx/hybrid/wildcard | |
parent | be19f3aae4e16b4dc9c980cb9b53e807616662ef (diff) |
Add support for type customization in C++/Hybrid
examples/cxx/hybrid/custom/wildcard/: new example
Diffstat (limited to 'examples/cxx/hybrid/wildcard')
-rw-r--r-- | examples/cxx/hybrid/wildcard/README | 13 | ||||
-rw-r--r-- | examples/cxx/hybrid/wildcard/envelope-pimpl.hxx | 2 |
2 files changed, 9 insertions, 6 deletions
diff --git a/examples/cxx/hybrid/wildcard/README b/examples/cxx/hybrid/wildcard/README index d54b081..e185492 100644 --- a/examples/cxx/hybrid/wildcard/README +++ b/examples/cxx/hybrid/wildcard/README @@ -2,11 +2,14 @@ This example shows how to parse, store in the object model, and serialize XML data matched by XML Schema wildcards (any and anyAttribute) using the Embedded C++/Hybrid mapping. -This example uses the object model as well as parser and serializer -customization mechanisms provided by the C++/Hybrid mapping. For more -information, see Section 4.8, "Customizing the Object Model" and Section -6.1, "Customizing Parsers and Serializers" in the Embedded C++/Hybrid -Mapping Getting Started Guide. +This example uses the custom data mechanism to store the wildcard data +in the object model as well as parser and serializer customization to +parse and serialize the wildcard data. For more information, see Section +4.8, "Customizing the Object Model" and Section 6.1, "Customizing Parsers +and Serializers" in the Embedded C++/Hybrid Mapping Getting Started Guide. + +The 'wildcard' example in the examples/cxx/hybrid/custom/ directory shows +how to do the same but using type customization instead of custom data. The example consists of the following files: diff --git a/examples/cxx/hybrid/wildcard/envelope-pimpl.hxx b/examples/cxx/hybrid/wildcard/envelope-pimpl.hxx index 06eb26c..d783cc9 100644 --- a/examples/cxx/hybrid/wildcard/envelope-pimpl.hxx +++ b/examples/cxx/hybrid/wildcard/envelope-pimpl.hxx @@ -12,7 +12,7 @@ namespace email // and _any_characters functions. We can dynamically select a parser // from the _start_any_element after which all inner content will be // automatically routed to this parser. At the end we will get a call - // to _end_any_element in which we can call post(), and save the data. + // to _end_any_element in which we can call post() and save the data. // class envelope_pimpl: public envelope_base_pimpl { |