xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wong Kok Wai <won...@pacific.net.sg>
Subject Re: Skipping the DTD
Date Thu, 11 Nov 1999 14:13:35 GMT
If you are using SAX, you can write a class that implements EntityResolver
that "redirects" the parser to read the DTD from your local disk.

Rickard Öberg wrote:

> Hi!
>
> Using Xerces. My XML documents use a DTD that is sometimes unavailable
> (through http). I don't want the parser to crash just because of that.
> How do I turn off DTD parsing, even if the DTD is specified in the
> document?
>
> http://xml.org/sax/features/validation does half, but still reads the
> DTD it seems. Why it does that I don't understand, as it doesn't use it.
>
> /Rickard
>
> --
> Rickard Öberg
>
> @home: +46 13 177937
> Email: rickard@dreambean.com
> Homepage: http://www-und.ida.liu.se/~ricob684


Mime
View raw message