[jdom-interest] error 503 and DTD file.

Olivier Jaquemet olivier.jaquemet at jalios.com
Thu Aug 13 07:33:15 PDT 2009


You must develop your own EntityResolver to be used during the XML parsing.

To make it easier, the following Java project already contains the 
proper DTD and custom entity resolver which you'll just have to use

Olivier Jaquemet

Renaud guezennec wrote:
> Hi all,
> I'm trying to use Jdom in my software. When it tries to build a Jdom 
> document, it receives a 503 error.  My software parses a lot of page 
> from w3.org and the error occurs when jdom tries to read the DTD file.
> (see :java.io.IOException: Server returned HTTP response code: 503 for 
> URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd) 
> <http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd%29>
> The 503 error is expected, I mean the w3c returns this http response 
> to reduce the traffic.
> I'm wondering if there is a way to prevent jdom from asking the dtd 
> file ? or you may know a way to get around this problem.
> Regards
> http://renaudguezennec.homelinux.org/
> ------------------------------------------------------------------------
> _______________________________________________
> To control your jdom-interest membership:
> http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com

Olivier Jaquemet <olivier.jaquemet at jalios.com>
Ingénieur R&D Jalios S.A.
Tel: 0970 461 480

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20090813/dd197183/attachment.htm

More information about the jdom-interest mailing list