Hi,
When parsing an XML document "personal-schema.xml" with
xsi:noNamespaceSchemaLocation="personal.xsd" with the code below, I get
different systemId parameter values in the LSResourceResolver in version 2.11.0
and 2.10.0 :
DOMImplementationLS implementationLS = new DOMImplementationImpl();
LSParser builder =
implementationLS.createLSParser(DOMImplementationLS.MODE_SYNCHRONOUS, null);
LSResourceResolver resolver = new LSResourceResolver() {
public LSInput resolveResource(String type, String namespace, String
publicId,
String systemId, String baseURI) {
// in Xerces 2.11.0, systemId is expanded:
'file:/C:/my/path/to/doc/personal.xsd'
// in Xerces 2.10.0, the value is exactly the same as declared in the
document: 'personal.xsd'
return null;
}
};
builder.getDomConfig().setParameter("validate", Boolean.TRUE);
builder.getDomConfig().setParameter("resource-resolver", resolver);
Document doc = builder.parseURI(getURL("personal-schema.xml").toString());
Is this a bug?
Thanks!
Carla