Validate XML Schema documents.
This task validates XML schema documents. It requires an XML parser
that handles the relevant SAx, Xerces or JAXP options.
To resolve remote referencies, Ant may need its proxy set up, using the
setproxy task.
Hands off most of the work to its parent,
XMLValidateTask since: Ant1.7
final public static String ERROR_TOO_MANY_DEFAULT_SCHEMAS(Code)
too many default schemas
MESSAGE_ADDING_SCHEMA
final public static String MESSAGE_ADDING_SCHEMA(Code)
adding schema
Method Detail
addConfiguredSchema
public void addConfiguredSchema(SchemaLocation location)(Code)
add the schema
Parameters: location - the schema location. throws: BuildException - if there is no namespace, or if there alreadyis a declaration of this schema with a different value
Create a reader if the use of the class did not specify another one.
The reason to not use
JAXPUtils.getXMLReader was to
create our own factory with our own options.
a default XML parser
enableJAXP12SchemaValidation
public boolean enableJAXP12SchemaValidation()(Code)
Set schema attributes in a JAXP 1.2 engine.
See Also:
* JAXP 1.2 Approved CHANGES true on success, false on failure
enableXercesSchemaValidation
public boolean enableXercesSchemaValidation()(Code)
Turn on XSD support in Xerces.
true on success, false on failure
Called by the project to let the task initialize properly. The default
implementation is a no-op.
throws: BuildException - if something goes wrong with the build
init the parser : load the parser class, and set features if necessary It
is only after this that the reader is valid
throws: BuildException - if something went wrong