[jdom-interest] problem validating schema with Xerces 1.3.0
Aleksandar Milanovic
amilanovic at galdosinc.com
Tue Feb 20 14:18:07 PST 2001
Hi,
I want to validate a schema using the Xerces 1.3 parser. The parser reports
the following error:
org.xml.sax.SAXParseException: General Schema Error: Grammar with uri 2:
http://www.w3.org/2000/10/XMLSchema , can not found.
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1060)
at
org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLError(X
MLValidator.java:1446)
at
org.apache.xerces.validators.common.XMLValidator.validateElementAndAttribute
s(XMLValidator.java:2736)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
or.java:924)
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
r.java:1858)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1001)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
The document in question starts with:
?xml version="1.0" encoding="UTF-8"?> <xsd:schema
xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" ...
Can Xerces 1.3 validate schemas at all? The same schema validates fine in
XMLSpy 3.5.
thx
Alex
------------------------------------------------
Aleksandar Milanovic
Software Engineer
Galdos Systems Inc.
email: amilanovic at galdosinc.com
More information about the jdom-interest
mailing list