Return-Path: Mailing-List: contact general-help@xml.apache.org; run by ezmlm Delivered-To: mailing list general@xml.apache.org Received: (qmail 90016 invoked from network); 30 May 2000 16:32:39 -0000 Received: from pt73.peacetech.com (HELO ptint3.peacetech.com) (207.176.93.73) by locus.apache.org with SMTP; 30 May 2000 16:32:39 -0000 Received: by pt73.peacetech.com with Internet Mail Service (5.5.2448.0) id <2AWMPKPV>; Tue, 30 May 2000 12:32:28 -0400 Message-ID: <511F5E23FD70D111BA840060083424E5B6DB69@pt73.peacetech.com> From: "Roytman, Alex" To: "'general@xml.apache.org'" Subject: Xerces 1.1 overlooks DTD/XML inconsistency. While v 1.0.3 finds t he bug Date: Tue, 30 May 2000 12:32:25 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N this is a snippet from my DTD with couple of bugs in it: when I renamed tables -> ds-tables and table -> ds-table I forgot to do so in So I am using correct xml with incorrect DTD: ........... XERCES 1.1 DOES NOT REPORT ANY ERRORS while Xerces 1.0.3 does: om.peacetech.xsum.InvalidXMLError: Warning: The content model of element "dataset" refers to the undeclared element "tables". (line 3, column 34) org.xml.sax.SAXParseException: The content model of element "dataset" refers to the undeclared element "tables". at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1225) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1247) at pti.mcps.xtotals.Test.main(Test.java:19) I use following Parser setup: parser.setFeature("http://apache.org/xml/features/dom/defer-node-expansion", false); parser.setFeature("http://apache.org/xml/features/continue-after-fatal-error ", false); parser.setFeature("http://apache.org/xml/features/validation/warn-on-undecla red-elemdef", true); parser.setFeature("http://xml.org/sax/features/validation", true); parser.setFeature("http://apache.org/xml/features/validation/dynamic", false); parser.setFeature("http://apache.org/xml/features/dom/include-ignorable-whit espace", false);