This task takes an XML document as an input and validates it against aa given XML schema. The task returns boolean True
if the validation was successfull or a string containing validation errors if any were found.
Input Parameters
Input
- The document that validation will be preformed against
- XML as a C# String
- C# XmlDocument
- The document that validation will be preformed against
XSDSchema
- The XML schema that the input will be validated against
Output Result
Boolean
- True if the document was valid
String
- A string containing validation errors if any validation errors were found for example
The ':' character, hexadecimal value 0x3A, cannot be included in a name.
- A string containing validation errors if any validation errors were found for example
Example Usage
For XML Schema examples and documentation see W3Schools XSD
Errors
The task will return an exception The input data was not recognized. Supported formats are XML string and XMLDocument.
if the input data or the XSLT document could not be read correctly.