schemaSource not working with an array of sources? 2003-02-03 - By Jesus M. Salvo Jr.
JAXP + Xerces 2.2.1
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance(); docBuilderFactory.setNamespaceAware( true ); docBuilderFactory.setValidating( true ); docBuilderFactory.setAttribute( com.mig.mms.mm7.Constants.JAXP_SCHEMA_LANGUAGE, com.mig.mms.mm7.Constants.W3C_XML_SCHEMA ); InputStream[] sources = { this.getClass().getResourceAsStream( "/V5_5_0/REL-5-MM7-1-2.xsd" ), this.getClass().getResourceAsStream( "/V5_5_0/schemas.xmlsoap.org.xml" ) }; docBuilderFactory.setAttribute( com.mig.mms.mm7.Constants.JAXP_SCHEMA_SOURCE, sources );
Using the above code, Xerces loaded the first schema source REL-5-MM7-1-2.xsd from the InputStream that I indicated above ok ... but it did not use the SOAP schema file schemas.xmlsoap.org.xml that I indicated above.
Instead, I can see TCP SYNs to schemas.xmlsoap.org ... trying to get the schema definition from that webserver.
Why doesn't Xerces 2.2.1 use the one that I have?
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|