How to parse a xhtml ignoring the DOCTYPE declaration using DOM parser

Posted by Rachel on Stack Overflow See other posts from Stack Overflow or by Rachel
Published on 2010-04-14T20:32:03Z Indexed on 2010/04/14 20:33 UTC
Read the original article Hit count: 341

Filed under:
|
|
|

Hi I face issue parsing xhtml with DOCTYPE declaration using DOM parser. Error: java.io.IOException: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd%20

Is there a way to parse the xhtml to a Document object iognoring the DOCTYPE.

© Stack Overflow or respective owner

Related posts about xmlparser

Related posts about xml-parsing