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 James Liu <Ja...@FundServ.com> on 2001/08/14 16:28:13 UTC
do not load external dtd
Hi,
I'm trying to parse an XML file which has DOCTYPE in it but I don't have the
dtd file it specified.
although I turned off the validation, the parser still tried to load the
external DTD and throw an
exception because it couldn't. Is there anyway to let the parser not to load
external DTD and
parser the XML without validation? I tried these two features:
http://xml.org/sax/features/external-general-entities
http://xml.org/sax/features/external-general-entities
but the parser threw an exception saying it's not supported.
thanks in advance.
James
Re: do not load external dtd
Posted by Wendi Sisson <ws...@east.fedex.com>.
Can you stop the parser in the middle of parser and turn this feature
on? Like if a document referenced multiple DTDs and you wanted to load
one but not the other? Thanks, Wendi
Elena Litani wrote:
>
> James,
>
> You can use the following feature:
> http://apache.org/xml/features/nonvalidating/load-external-dtd.
>
> For more info visit: http://xml.apache.org/xerces-j/features.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org
--
Wendi Sisson
Systems Programmer
International Trade Development
FedEx Services
(901) 263-6695
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
Re: do not load external dtd
Posted by Elena Litani <el...@ca.ibm.com>.
James,
You can use the following feature:
http://apache.org/xml/features/nonvalidating/load-external-dtd.
For more info visit: http://xml.apache.org/xerces-j/features.html
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org