[EMAIL PROTECTED] schrieb am 17.04.01: > Hello, > > this message was posted by Derek some time ago. > > >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! > > > > I'm facing now the same problem and could not explain it any better than > Derek did. The > only change which was recommended by Sandy Gao was: > Use "http://www.w3.org/2000/10/..." instead of "http://www.w3.org/2001/... > ". Xerces-J doesn't fully conform to Schema PR yet. > Thats what I did. I also tried ""http://www.w3.org/2000/...", but it still > does not work. > Any more ideas?. >
Hi that's what I'm using with xerces 1.3.1 validating xml-files against xml-schemata xmlns="http://www.w3.org/2000/10/XMLSchema" --> this works fine, while trying to use this one http://www.w3.org/2001/XMLSchema ends with an error. but I have to say that I was trying it only with the examples of xerces (dom.DOMWriter) and my own XML and schema. hope that helps you out... daniel _______________________________________________________________________________ Alles unter einem Dach: Informationen, Fun, E-Mails. Bei WEB.DE: http://web.de Die gro?e Welt der Kommunikation: E-Mail, Fax, SMS, WAP: http://freemail.web.de --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
