Taking the idea of XML Schema generation : click here to read my previous article. The XML document can be validated against its schema before processing it.
This option is useful when loading an untrusted schema, perhaps from a remote site using an The value is the name of a user-supplied class that implements the interface This currently only works when documents are parsed using the Xerces parser, which is the default in JDK 1.5 and later.If set to 1.1, allows XML 1.1 and XML Namespaces 1.1 constructs.(Note however, that even with no optimization, lazy evaluation may still cause the evaluation order to be not as expected.) selects the Apache XML resolver (part of the Apache Commons project, which must be on the classpath) and enables URIs to be resolved via a catalog, allowing references to external web sites to be redirected to local copies.This option switches on the capture of validation reporting.