Howdy all, I'm running into a problem in document validation, and I have not found anything that points me in the right direction...
I am validating a document against a schema that has multiple 'includes', to wit: --- <xsd:schema xmlns:xsd = "http://www.w3.org/2001/XMLSchema"> <xsd:include schemaLocation = "cCertificateInformation.xsd"/> <xsd:include schemaLocation = "cCommodityInformation.xsd"/> <xsd:include schemaLocation = "cContactInformation.xsd"/> <xsd:include schemaLocation = "cLocationInformation.xsd"/> <xsd:include schemaLocation = "cEntityInformation.xsd"/> --- Now, when validating the document, I use the Xerces property --- --- The validation is able to identify the 'QualityCertificate.xsd'file, but validation gives the following errors: [Warning] :0:0: File "file:///C:/agxml/NamespaceExamples/cCertificateInformation.xsd" not found. [Warning] :0:0: File "file:///C:/agxml/NamespaceExamples/cCommodityInformation.xsd" not found. [Warning] :0:0: File "file:///C:/agxml/NamespaceExamples/cContactInformation.xsd" not found. --- (i.e. the validator is searching for the "included" schema files in the directory of the java program, not the schema location itself.) So, my question boils down to this; -> How do I specify an included schema without 'coding' the directory path into each and every file? (This would likely not work well as I move schemas from my local hard drive to a production 'Big Box' to a website, etc...) Anyone run into these problems? Thanks, Chad --- Chad Thompson [EMAIL PROTECTED] parser.setProperty("http://apache.org/xml/properties/schema/external-noName spaceSchemaLocation", "file:///C:/agxml/schemas/QualityCertificate.xsd"); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
