You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Jim Gan <ji...@ipedo.com> on 2001/08/21 19:04:25 UTC

how to change Xerces 1.x to use my own dtd for validation

Hi,

I'd like to change the Xerces 1.x parser to use the local dtd instead of
the 
dtd embedded in the xml document for validation.

Can anyone tell me which java files I should modify ?
Is it enough to just change scanDoctypeDecl() in XMLDocumentScanner ?

Thanks in advance

Jim


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


Re: how to change Xerces 1.x to use my own dtd for validation

Posted by Edwin Goei <ed...@sun.com>.
Jim Gan wrote:
> 
> Hi,
> 
> I'd like to change the Xerces 1.x parser to use the local dtd instead of
> the
> dtd embedded in the xml document for validation.
> 
> Can anyone tell me which java files I should modify ?
> Is it enough to just change scanDoctypeDecl() in XMLDocumentScanner ?

See http://xml.apache.org/~edwingo/jaxp-faq.html#EntityResolver for
another option.  I just updated my JAXP FAQ today.

-Edwin

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