error in W3C DTD?

Folks,

1) I run the following URL through JTidy using setXMLOut(true):

	http://validator.w3.org/check?uri=java.sun.com


2) I then try running the resulting document through the JAXP SAX parser,
and get the following exception:


** Parsing error, line 31, uri http://www.w3.org/TR/REC-html40/loose.dtd
   Next character must be ">" terminating <!ENTITY ...> declaration
"HTML.Version".
org.xml.sax.SAXParseException: Next character must be ">" terminating
<!ENTITY ...> declaration "HTML.Version".
        at com.sun.xml.parser.Parser.fatal(Parser.java:2797)
        at com.sun.xml.parser.Parser.fatal(Parser.java:2791)
        at com.sun.xml.parser.Parser.nextChar(Parser.java:2715)
        at com.sun.xml.parser.Parser.maybeEntityDecl(Parser.java:2366)
        at com.sun.xml.parser.Parser.maybeMarkupDecl(Parser.java:1180)
        at
com.sun.xml.parser.Parser.externalParameterEntity(Parser.java:2516)
        at com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1136)
        at com.sun.xml.parser.Parser.parseInternal(Parser.java:480)
        at com.sun.xml.parser.Parser.parse(Parser.java:283)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:126)




Is there an error in the http://www.w3.org/TR/REC-html40/loose.dtd DTD?
Something seems fishy here... =)

Any ideas?
- Nayan

Received on Sunday, 27 August 2000 18:45:22 UTC