I use Xerces for validation purposes. The XML file I have has Schema
location with an XSD URI pointing to a http resournce like this
xsi:schemaLocation="http://example.com/tools/job
http://example.com/tools/schema.xsd"
When I validate I explictly provide Xerces sax parser a schema location
that is on disk to validate and in some cases I expect the validation to
fail
parser->setProperty(XMLUni::fgXercesSchemaExternalSchemaLocation, (void
*) XMLString::transcode(szExternalSchemaLocation.c_str()));
It seems like in those cases, Xerces actually tries to fetch the http
resource pointed in the XML document (and takes a long time to time out
as the http resource is unavailable). I would like to prevent Xerces
from validation against the schema provided in the document enitrely and
just use the location I provided. Can some one please point me how to
achieve this?
thanks
Eswar