ValidateXmlTask Class

Summary

Validates a set of XML files based on a set of XML Schemas (XSD).
Assembly
NAnt.Contrib.dll
Namespace
NAnt.Contrib.Tasks
Base Types
  • Task
graph BT Type-->Base0["Task"] Type["ValidateXmlTask"] class Type type-node

Syntax

[TaskName("validatexml")]
public class ValidateXmlTask : Task

Examples

    <validatexml>
    <schemas>
        <schema source="rcf-schema.xsd" />
        <schema namespace="urn:schemas-company-com:base" source="base-schema.xsd" />
    </schemas>
    <files>
        <include name="*.xml" />
    </files>
</validatexml>

Attributes

Type Description
TaskName

Properties

Name Value Summary
Schemas XmlSchemaReferenceCollection
The XML Schemas (XSD) to use for validation.
XmlFiles FileSet
The XML files that must be validated.

Methods

Name Value Summary
ExecuteTask() void
This is where the work is done.