Yes, that sounds like a screw up. The change was supposed to be done in the SAXParser not the XMLParser.

It is a bug.

Jeffrey Rodriguez
XML4J Support
IBM Cupertino


From: "George T. Joseph" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: "xerces-dev" <[EMAIL PROTECTED]>
Subject: Last change to XMLParser.java broke Schema validation
Date: Thu, 9 Mar 2000 16:49:24 -0500

Defaulting fNamespacesEnabled to 'true' in XMLParser causes namespaces to be
enabled for DOMParser as well as SAXParser. This causes Schema validation
(which uses the DOMParser) to choke with "Attribute "xmlns" must be declared for
element..." plus a "must be declared" error for every element and attribute.
Try the personal-schema.xml with either "SAXCount -v" or "DOMCount". Plain
DOMParser DTD validation also chokes.


To set the new SAX2 default, you might want to call setNamespaces(true) in the
SAXParser constructor rather than setting the field in XMLParser.


george


______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com



Reply via email to