<validatexml>
A task that validates a set of XML files based on a set of Schemas (XSD).
| Attribute | Description | Required |
|---|---|---|
| files | Set of XML files to use as input. | True |
| schemas | Schema to use in validation. | True |
| failonerror | Determines whether task failure stops the build or is just reported. Default is "true." | False |
| verbose | Task reports detailed build log messages. Default is "false." | False |
| if | If true then the task will be executed; otherwise skipped. Default is "true." | False |
| unless | Opposite of if. If false then the task will be executed; otherwise skipped. Default is "false." | False |
Example
<validatexml>
<schemas>
<schemaref source="rcf-schema.xsd"/>
<schemaref namespace="urn:schemas-company-com:base"
source="base-schema.xsd"/>
</schemas>
<files>
<includes name="*.xml"/>
</files>
</validatexml>