Alex Talis <[EMAIL PROTECTED]> wrote on 11/17/2008 06:29:16 PM:

> I got a direct mail with a question about why the statement below
> causes SAXNotRecognizedException out of the box.  I decided to post
> it back to the list in case anyone else experiences this.
>
>     Validator.getProperty( "http://apache.
> org/xml/properties/dom/current-element-node");
>
> This property does not seem to be supported by the XML parser that
> comes with your JRE.

Not surprising. The Sun JRE versions were forked off of Xerces releases
which are many years old now. You'll find many things which aren't
supported by them that are in the current version of Xerces.

> You need to use the Xerces parser directly.
> Download binary distribution of Xerces and put the jar files in some
> directory.  Then tell Java launcher that that directory is an
> "endorsed standards" directory, like this:
>
> > java -Djava.endorsed.dirs=<PATH TO DIR WITH XERCES JAR FILES>
> TestCurrentNode
>
> Then it should work.
>
> Alex.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

Reply via email to