You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Ju...@t-systems.com on 2003/10/07 12:30:09 UTC

SAXNotRecognizedException while setting property

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@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org