From 1f532fbef3e224eeff5b4bb93a5209df9c08f245 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 18 Sep 2009 11:18:11 +0200 Subject: Don't reference generated code --- documentation/cxx/tree/dbxml/index.xhtml | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/documentation/cxx/tree/dbxml/index.xhtml b/documentation/cxx/tree/dbxml/index.xhtml index e4e01e6..07a7576 100644 --- a/documentation/cxx/tree/dbxml/index.xhtml +++ b/documentation/cxx/tree/dbxml/index.xhtml @@ -68,9 +68,19 @@

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:

+ to obtain 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. -

-

Create Document from Object Model

In this step, we will programmatically create a book catalog -- cgit v1.1