XML Validation with no connection to the internet
843834May 12 2006 — edited Jul 10 2006Hi,
I'm trying to validate a ml instance document against a xml schema, using the javax.xml.validation.Validator.validate() method. This works fine as long as I have an internet connection, but not when I disconnect from the internet it fails.
I've detected, using a network sniffer, that this is due to the fact that the validation process tries to fetch the XMLSchema.dtd and datatypes.dtd from w3.org. Is there any way to avoid this by prestoring these somewhere? So that the internet connection is not needed?
I need to be able to do validation without a connection to the internet since the environment where my application is deployed does not have such a connection.
Ray