W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2000

error in W3C DTD?

From: Nayan Hajratwala <nayan@walanet.com>
Date: Sun, 27 Aug 2000 18:42:13 -0400
To: <html-tidy@w3c.org>

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


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
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.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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:48 UTC