diff options
Diffstat (limited to 'documentation/cxx/tree/guide/index.xhtml')
-rw-r--r-- | documentation/cxx/tree/guide/index.xhtml | 10 |
1 files changed, 8 insertions, 2 deletions
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)); <p>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 <code>caching</code> example in the <code>examples/cxx/tree/</code> directory of the XSD - distribution.</p> + 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 <code>embedded</code> example in the + <code>examples/cxx/tree/</code> directory of the XSD distribution.</p> <p>When the XML parser cannot locate a schema for the XML document, the validation fails and XML document |