This is really an XML question, and is specific to your particular parser.

I'm using XercesJ version 1.4.4, so I turn off DTD loading like this:

    SAXReader r = (SAXReader)item;
    r.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd";, 
false);

Your mileage may vary.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Borja Martín
Sent: Wednesday, October 01, 2003 11:25 AM
To: [EMAIL PROTECTED]
Subject: [dom4j-user] ignore the dtd file


hi.
I want to read a xml file that has a reference to a dtd file. But the 
problem is that that dtd file contains errors(the file has not a utf-8 format).
I know I could convert this dtd file with the utf-8 enconding, but I would 
like to control this error in further occasions just by ignoring the 
reference. By searching in the mailiing list archive I read that I could 
use the EntityResolver class to solve especify another dtd file, but I 
would like just to ignore it... can that be done?

thx in advance.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to