From ff835105875687f3bf5307526a95d13c22f0b255 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 16 Apr 2010 08:47:12 +0200 Subject: Add a note on the embedded example in C++/Tree GSG --- documentation/cxx/tree/guide/index.xhtml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'documentation/cxx/tree') diff --git a/documentation/cxx/tree/guide/index.xhtml b/documentation/cxx/tree/guide/index.xhtml index 6cddf15..64389dc 100644 --- a/documentation/cxx/tree/guide/index.xhtml +++ b/documentation/cxx/tree/guide/index.xhtml @@ -2368,12 +2368,18 @@ auto_ptr<people_t> p (people ("people.xml", 0, props));

A third method is the most useful if you are planning to parse several XML documents of the same vocabulary. In that case - it may be beneficial to pre-parse and cache the schema in + it may be beneficial to pre-parse and cache the schemas in the XML parser which can then be used to parse all documents without re-parsing the schemas. For more information on this method refer to the caching example in the examples/cxx/tree/ directory of the XSD - distribution.

+ distribution. It is also possible to convert the schemas into + a pre-compiled binary representation and embed this representation + directly into the application executable. With this approach your + application can perform XML Schema validation without depending on + any external schema files. For more information on how to achieve + this refer to the embedded example in the + examples/cxx/tree/ directory of the XSD distribution.

When the XML parser cannot locate a schema for the XML document, the validation fails and XML document -- cgit v1.1