From 1f532fbef3e224eeff5b4bb93a5209df9c08f245 Mon Sep 17 00:00:00 2001
From: Boris Kolpackov Our examples will be based on simple XML for book library. The XML
Schema definition for the library is in
library.xsd and is compiled by XSD
- to obtain library.hxx and
- library.cxx. A sample XML document
- is presented below:library.hxx
and library.cxx
.
+ All C++ code fragments that are presented in this guide are available
+ as a single program in driver.cxx.
+ The complete example is available in the
+ examples/cxx/tree/dbxml
directory of the XSD distribution.
Note that due to the incomplete DOM API implementation provided by DB
+ XML (as of version 2.3.10), the generated code and your application
+ should be compiled with the DBXML_DOM
macro defined in
+ order to avoid using unsupported parts of the API.
+
A sample XML document for the library schema is presented below:
<lib:catalog xmlns:lib="http://www.codesynthesis.com/library"> @@ -94,18 +104,6 @@ </lib:catalog>-
All C++ code fragments that are presented in this guide are available
- as a single program in driver.cxx.
- The complete example is available in the
- examples/cxx/tree/dbxml
directory of the XSD distribution.
-
Note that due to the incomplete DOM API implementation provided by DB
- XML (as of version 2.3.10), the generated code and your application
- should be compiled with the DBXML_DOM
macro defined in
- order to avoid using unsupported parts of the API.
-
In this step, we will programmatically create a book catalog -- cgit v1.1