<validatexml>

[This is preliminary documentation and subject to change.]

Validates a set of XML files based on a set of XML Schemas (XSD).

Parameters

Attribute Type Description Required
failonerror bool Determines if task failure stops the build, or is just reported. The default is true. False
if bool If true then the task will be executed; otherwise, skipped. The default is true. False
unless bool Opposite of if. If false then the task will be executed; otherwise, skipped. The default is false. False
verbose bool Determines whether the task should report detailed build log messages. The default is false. False

Nested Elements:

<files>

The XML files that must be validated.

</files>

<schemas>

The XML Schemas (XSD) to use for validation.
<schema>

Represents the schema collection element.

Parameters

AttributeTypeDescriptionRequired
sourcestring Location of this schema. Could be a local file path or an HTTP URL. True
namespacestring Namespace URI associated with this schema. If not present, it is assumed that the schema's targetNamespace value is to be used. False
</schema>

</schemas>

Examples

Requirements

Assembly: NAnt.Contrib.Tasks (0.92.4509.0)