Hi Ralph,

Ralph van Etten <[email protected]> writes:

> Since I have to parse the document into a DOM tree I was hoping there 
> was an option to xerces to only do partial validation or that partial 
> validation is possible by using some construction in the xsd file.

You can try to create a schema for your document using XML Schema
wildcards with lax validation (i.e., the root element of your document
with everything inside "covered" by wildcards). Then you can enable
validation and load both this schema and your fragment schema. The
parser then should use your schema to validate the corresponding
fragments in the document and ignore everything else (lax validation).

Boris


-- 
Boris Kolpackov, Code Synthesis Tools  http://codesynthesis.com/~boris/blog
Open-source XML data binding for C++:  http://codesynthesis.com/products/xsd
XML data binding for embedded systems: http://codesynthesis.com/products/xsde

Reply via email to