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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
