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 Eddie Robertsson <ed...@allette.com.au> on 2002/01/16 23:47:27 UTC

XML Schema properties

Hi all,

I've currently switched to Xerces-2_0_0_beta4 and I'm experiencing some
problems when setting the properties for XML Schema validation. The
problem is that I'm getting a SAXNotRecognizedException when trying to
set the property
"http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation".

Has this been removed in beta4 or renamed?

Here is my relevant code:

// Get an XMLReader instance
reader =
XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");

// Register the Error handler
reader.setErrorHandler(errorHandler);

// W3C XML Schema
reader.setFeature("http://xml.org/sax/features/validation", true);
reader.setFeature("http://apache.org/xml/features/validation/schema",
true);
reader.setFeature("http://apache.org/xml/features/validation/schema-full-checking",
true);
reader.setProperty("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation",
"Test.xsd");

Am I doing something wrong?

Cheers,
/Eddie




---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Re: XML Schema properties

Posted by John Mani <jo...@sixthdimension.com>.
I reported this bug couple of weeks back. Its apparently been fixed in the
source tree, and
hopefully will be available in the next binary release too (whenever that
is, I dont know)

-john

----- Original Message -----
From: "Eddie Robertsson" <ed...@allette.com.au>
To: "xerces" <xe...@xml.apache.org>
Sent: Wednesday, January 16, 2002 2:47 PM
Subject: XML Schema properties


> Hi all,
>
> I've currently switched to Xerces-2_0_0_beta4 and I'm experiencing some
> problems when setting the properties for XML Schema validation. The
> problem is that I'm getting a SAXNotRecognizedException when trying to
> set the property
>
"http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation"
.
>
> Has this been removed in beta4 or renamed?
>
> Here is my relevant code:
>
> // Get an XMLReader instance
> reader =
> XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
>
> // Register the Error handler
> reader.setErrorHandler(errorHandler);
>
> // W3C XML Schema
> reader.setFeature("http://xml.org/sax/features/validation", true);
> reader.setFeature("http://apache.org/xml/features/validation/schema",
> true);
>
reader.setFeature("http://apache.org/xml/features/validation/schema-full-che
cking",
> true);
>
reader.setProperty("http://apache.org/xml/properties/schema/external-noNames
paceSchemaLocation",
> "Test.xsd");
>
> Am I doing something wrong?
>
> Cheers,
> /Eddie
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org