Hello!
I know there are many more topics with this problem, but i didn't find a solution for my problem.
I'am using the simple example from the dom3 sample file:
System.setProperty(DOMImplementationRegistry.PROPERTY,"org.apache.xerces.dom.DOMImplementationSourceImpl");
registry = DOMImplementationRegistry.newInstance();
DOMImplementationLS LSImpl = (DOMImplementationLS)registry.getDOMImplementation("LS");
documentParser =
LSImpl.createLSParser(DOMImplementationLS.MODE_SYNCHRONOUS, null);
instanceDocument = (DocumentImpl) documentParser.parseURI(location); config = instanceDocument.getDomConfig();
config.setParameter("error-handler", this); config.setParameter("validate",Boolean.TRUE); config.setParameter("schema-type","http://www.w3.org/2001/XMLSchema"); config.setParameter("schema-location",schemaLocation);
instanceDocument.normalizeDocument(); ...
As the schema i'am using the example from the XML Schema Part 0: Primer
http://www.w3.org/TR/xmlschema-0/#ipo.xsd , http://www.w3.org/TR/xmlschema-0/#address.xsd
und an selfmade inctance
everything is alright, except that the typdefinitions from address.xsd couldn't be found
what is false or is it the completly wrong way doing validation with more then one schema?
thx for any help Mathias
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]