# Validate

Required Frends version: 5.5+

Required .NET version: 6.0

Compatible Agents: Crossplatform

Source code: <https://github.com/FrendsPlatform/Frends.CrossplatformXML>

{% tabs %}
{% tab title="Parameter: Input" %}

| Name                    | Description                                                                                                                                                                                                         |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Xml : `String`          | <p>XML to validate.</p><p><br>Default: <code>-</code><br>Example: <code>content</code></p>                                                                                                                          |
| XsdSchemas : `String[]` | <p>List of XML Schema Definitions</p><p><br>Default: <code>-</code><br>Example: <code>\[ "</code><a href="xs:schema"><code>xs:schema</code></a><code>...\</xs:schema>", "\<xs:schema>...\</xs:schema>" ]</code></p> |
| {% endtab %}            |                                                                                                                                                                                                                     |

{% tab title="Parameter: Options" %}

| Name                                | Description                                                                                                                                    |
| ----------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| ThrowOnValidationErrors : `Boolean` | <p>Whether to throw and exception on validation error or return as result.</p><p><br>Default: <code>-</code><br>Example: <code>true</code></p> |
| {% endtab %}                        |                                                                                                                                                |

{% tab title="Result: Result" %}

| Name                | Description                                                                                                              |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| IsValid : `Boolean` | <p>Result of XML validation.<br>Example: <code>true</code></p>                                                           |
| Error : `String`    | <p>Validation error message, if any.<br>Example: <code>The element 'book' has invalid child element 'review'.</code></p> |
| {% endtab %}        |                                                                                                                          |
| {% endtabs %}       |                                                                                                                          |
