Hi Madhu,

Madhu Gowda <[EMAIL PROTECTED]> writes:

> Here, I want to know how to validate the presence of XSD file or how 
> to get an error from ErrorHandler indicating that XSd file is missing.

According to the spec the noNamespaceSchemaLocation location is only
a hint. Its absence or if it points to a non-existing schema is not
an error. I believe Xerces-C++ issues a warning if it cannot find the
schema from the schema location attribute. If you need to make it
an error then you will need to intercept schema resolutions requests
by providing your own entity resolver. See the Redirect example for
more information on how to do this.

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

Reply via email to