xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeffrey Rodriguez" <jeffreyr...@hotmail.com>
Subject Re: Validation and RevalidatingDOMParser questions
Date Fri, 06 Oct 2000 15:33:07 GMT
Hi Irene,

>First Question:
>According Xerces documentation to turn on a   validation you  have to
>use method setFeature() :
>                 p.setFeature("http://xml.org/sax/features/validation",

In addition to this you need to provide a class that implements the  
ErrorHandler interface  and you need to register it with the parser.
Look at the Xerces Samples under dom.wrappers package the source file
DOMParser ( xml-xerces\java\samples\dom\wrappers\DOMParser.java.

>      Second question:
>      Xerces documentation 1.0.3  and 1.2.0 listed RevalidatingDOMParser
>class that can be  used to
>      validate DOM nodes that has been read by parser. But ... xerces.jar
>(in two versions 1.0.3 and
>      1.2.0)doesn't contain this class. Is any tryed to use this class

RevalidatingDOMParser class is deprecated and it has been deleted out of the
current CVS repository.
It has been broken since 1.0.3 and unfortunately nobody has step out to
fix it. Sorry.


                     Jeffrey Rodriguez
                     Xerces J Developer

Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 

View raw message