I am receiving this error using the new xercesj 2.2.0:

org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 
'ab:Widgets'.
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.dom4j.io.SAXReader.read(SAXReader.java:323)
        at org.dom4j.io.SAXReader.read(SAXReader.java:236)

The same program works fine using xercesj 2.1.0. I am setting the reader property 
using:

reader.setProperty("http://apache.org/xml/properties/schema/external-schemaLocation";,
   "http://www.website.com/ab Widgets.xsd WidgetTypes.xsd");

and in the XML have specified:

    xsi:schemaLocation="http://www.website.com/ab Widgets.xsd WidgetTypes.xsd">

What has changed between 2.1.0 and 2.2.0 that could cause this error to occur?  The 
only thing I changed is the xerces jar files.  If I go back to 2.1.0 the program works 
fine.

Thanks,
David Janovy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to