SAXNotRecognizedException while setting property 2003-10-07 - By Juraj.Lenharcik@(protected)
Hi,
I have a strange problem while setting a property of a SAXParser. I am using Java 1.4.2. This is my code-snippset:
factory = SAXParserFactory.newInstance(); factory.setValidating(true); factory.setNamespaceAware(true);
try { parser = factory.newSAXParser();
//parser.setProperty(Defines.XML_PROPERTY_LEXICAL_HANDLER, builder);
//set the proeprty where the parser should look for a XSD schema cat.debug(Defines.XML_PROPERTY_NO_NAMESPACE_SCHEMA_LOCATION + " " + schemaLocation); parser.setProperty( Defines.XML_PROPERTY_NO_NAMESPACE_SCHEMA_LOCATION, schemaLocation);
And this is the output:
DEBUG 2003-10-07 12:26:52,687 XMLValidator(Line: 141) - http://apache.org /xml/properties/schema/external-noNamespaceSchemaLocation c:/schemas/file.xsd FATAL 2003-10-07 12:26:52,687 XMLValidator(Line: 159) - org.xml.sax .SAXNotRecognizedException: Property: http://apache.org/xml/properties/schema /external-noNamespaceSchemaLocation
Has someone an idea? It seems, that the xerces doesn`t know about this property ...
Juraj
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|