I am having problems validating xml documents against schemas defined using
the 1999 spec. I am using Xerces 1.3.0. Is the support for the older
versions of schemas discontinued?

The entity resolver that I have registered never gets called. The xml is:

<?xml version="1.0" encoding="UTF-8"?>

<theRoot xmlns="http://foo.com/ooo";
    xmlns:ppp="http://foo.com/ppp";
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
    xsi:schemaLocation="http://foo.com/ooo xml.xsd">
  <name>Mon nom</name>
  <number>65</number>
</theRoot>

[Error] xml.xml:6:53: General Schema Error: Grammar with uri 2:
http://foo.com/ooo , can not found.
[Error] xml.xml:6:53: Element type "theRoot" must be declared.
[Error] xml.xml:7:9: Element type "name" must be declared.
[Error] xml.xml:8:11: Element type "number" must be declared.

The validation works fine with Xerces version 1.2.0.

Also if I change the xsi attribute to say 10/2000, the entity resolver
_does_ get called, but of course, it complains that my schema is not well
defined.

Any help is appreciated
-Umesh




Reply via email to