You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Derek Huisjen <dh...@bea.com> on 2001/04/04 20:54:52 UTC
Xerces 1.3.1 validation
Hello,
I'm trying to use Xerces 1.3.1 with previously (Xerces 1.2.3) working code
and XML schema/documents. When validating one of these previously
1.2.3-valid XML documents in 1.3.1, I get a rather cryptic validation
exception:
org.xml.sax.SAXParseException: General Schema Error: Grammar with uri 2:
http://www.foo.com/bar/blah/1.0 , can not found.
The exception's error message hasn't exactly helped me diagnose what is
wrong. My schema element looks something like:
<schema
targetNamespace="http://www.foo.com/bar/blah/1.0"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:foo="http://www.foo.com/bar/blah/1.0">
And my document looks like:
<foo
xmlns="http://www.foo.com/bar/blah/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.foo.com/bar/blah/1.0 foo-1.0.xsd">
The validation worked fine in 1.2.3 (with the 1999 XMLSchema namespace).
The error is occuring in the validateElementAndAttributes method of
XMLValidator. I am using an entity resolver, but the resolveEntity method
is not called before this error occurs.
Any help is greatly appreciated! Thanks!
--Derek
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org