Hi Jimmy,
The value you specified is in the wrong format. It's supposed to be a
whitespace separated list [1] of URIs (i.e. no commas). It looks like we
also have a bug since we're not tokenizing this list. Feel free to open a
bug report in JIRA [2].
Thanks.
[1]
http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#parameter-schema-location
[2] http://issues.apache.org/jira/browse/XERCESJ
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@xxxxxxxxxx
E-mail: mrglavas@xxxxxxxxxx
"Coyne, Jimmy" <Jimmy.Coyne@xxxxxxx> wrote on 04/03/2007 08:52:59 AM:
> Hi All,
> I'm using DOMConfiguration.normalizeDocument() method to validate an
> existing DOM object. This works fine when I use a single schema like
below
> DOMConfiguration config = document.getDomConfig()
> config.setParameter("schema-location","employee.xsd");
> But if I use more than one to schema like below
> config.setParameter("schema-location","employee.xsd , employee2.xsd");
>
> I get the error
> Failed to read schema document 'employee.xsd , employee2.xsd',
> because 1) could not find the document; 2) the document could not be
> read; 3) the root element of the document is not <xsd:schema>.
> Any ideas ?
> Thanks
> Jimmy
|