[jdom-interest] JDOM Exception white space needed in DTD

Jason Webber webber at mminternet.com
Mon Feb 12 17:17:10 PST 2001


I am using JDOM beta 5 with the SAXBuilder.  I am getting the following
error when I try and build a document.

org.jdom.JDOMException: White space is required between the version and
the encoding declaration.: Error on line 1 of document
http://xxx.xxx.xxx.xx/path/some.dtd: White space is required between the
version and the encoding declaration.

This is the first line of the dtd:
<?xml version='1.0'?>

Any ideas are appreciated on how to get around this without changing the
DTD.

TIA




More information about the jdom-interest mailing list