Re: Ignoring DTD | A workaround

Jagdish Arora <[email protected]> Fri, 29 Nov 2002 00:06:03 -0500
Newsgroups gmane.comp.java.sun.xml.general
Message-ID <[email protected]>
Chaikim,

I had the same problem, and parser would fail (when for example, the
Internet wasnt on, or the Sun side was down).  I got a work around by
downloading the DTD, putting that in my C:\DTDs, and changing the reference
in XML.

Dont know if the static nature of this workaround solution works for you
though.

good luck

amrinder

----- Original Message -----
From: "Chaikim Lim" <[email protected]>
To: <[email protected]>
Sent: Thursday, November 28, 2002 3:25 AM
Subject: Ignoring DTD


> I'm using the java_xml_pack-summer-02's SAX Non-validating parser. If the
parser can't find the dtd file specified in the xml file, a FileNotFound
exception is thrown and parsing stops. I want the parser to ignore the
> <!DOCTYPE> tag. How can I do that?
>
> -----------------------------------------------------
> xml-interest: A list for discussing XML technologies in the Java Platform.
> To post, mailto:[email protected]
> Archives at: http://archives.java.sun.com/xml-interest.html
> To unsubscribe, mailto:[email protected] the following message;
> signoff xml-interest.
>

-----------------------------------------------------
xml-interest: A list for discussing XML technologies in the Java Platform.
To post, mailto:[email protected]
Archives at: http://archives.java.sun.com/xml-interest.html
To unsubscribe, mailto:[email protected] the following message;
signoff xml-interest.