# XSD Validator

## ![](/files/g5Hn9nDkyDlYVAhiDX0y) XSD Validator

### Description <a href="#description" id="description"></a>

The XSD Validator transform performs an XSD validation against data in a file or in an input field.

XSD is short for [XML Schema Definition](http://en.wikipedia.org/wiki/XML_Schema_\(W3C\)).

As such, there are 2 entities at work here:

* The XML you want to validate the layout for
* The XSD (Schema) file that describes what the XML file should look like.

To make matters more complex, it’s possible to store the XSD inside the XML itself.

See also the [XSD Validator workflow action](/data-shaper-1.21/knowing-the-data-shaper-designer/workflows/actions/xsdvalidator.md).

| Hop Engine | <sup>✓</sup> |
| ---------- | ------------ |
| Spark      | ?            |
| Flink      | ?            |
| Dataflow   | ?            |

### Options

| Option                | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Transform name        | Name of the transform.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| XML Source            | <ul><li>XML source is a file : check this if the XML file is defined as a filename in the XML field</li><li>XML field : the field to read that contains the XML filename or the XML content itself</li></ul>                                                                                                                                                                                                                                                                                                                 |
| Output fields         | <ul><li>Result fieldname : the name of the result field</li><li><p>Output String field : check this option if you want to specify specific messages after validation:</p><ul><li>Display if XML is valid : the message if the XML was valid.</li><li>Display if XML is not valid : the message if the XML wasn’t valid.</li></ul></li><li>Add validation msg in output : check this if you want to add a validation message in the output.</li><li>Validation msg field: the name of the validation message field.</li></ul> |
| XML schema definition | <p>XSD source : select one of these options:</p><ul><li>The XSD source is a file, let me specify the filename (specify below in the XSD filename field).</li><li>The XSD source is a file, defined in a field (specify below in the XSD filename field).</li><li>The XSD source is defined inside the source XML.</li></ul>                                                                                                                                                                                                  |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.primeur.com/data-shaper-1.21/knowing-the-data-shaper-designer/pipelines/transforms/xsdvalidator.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
