You can try using the external schema location property of Xerces. If a namespace is not specified using this property, Xerces should fall back onto the specified schema location in the document.
Alex -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Richard Emberson Sent: September 12, 2002 5:28 PM To: [EMAIL PROTECTED] Subject: namespace to schema file During xml validation, how to I map from namespace (the namespace attribute of the element) to schema definition file. Using XMLEntityResolver one is only handed the entity to be resolved, not the namespace that it is associated with (if a client xml document in the schemaLocation attribute puts in the "wrong" entity associated with a namespace, there is no way to map it to the correct local version of the schema file). Also, since schemaLocation attributes are only hints to the validator, how can one register with the xerces DOMParser an association between the namespace of the document and the location of the schema document? Thanks Richard --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
