# Check if XML file is well-formed

### Description

The `Check if XML file is well-formed action` verifies if one or more files contain well-formed (allowed) XML content.

### Options

#### General tab

| Option                        | Description                                                                                                                                                                                                                             |
| ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Action name                   | The name of the workflow action.                                                                                                                                                                                                        |
| Include Subfolders            | Option to move the content of sub-folders.                                                                                                                                                                                              |
| Copy previous results to args | Check this to pass the results of the previous action into the arguments of this action.                                                                                                                                                |
| File/Folder source            | Enter or select (Browse button) a file or folder                                                                                                                                                                                        |
| Wildcard (RegExp)             | A regular expression wildcard for the filename pattern                                                                                                                                                                                  |
| Files/Folders                 | <p>Specify the list of files or folders with wildcards (regular expressions) in this grid. You can add a different source/destination on each line.</p><p>Note: You can use the Add button to add a line to the Files/Folders list.</p> |

#### Advanced tab

| Option            | Description                                                                                                                                                                                                    |
| ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Success On        |                                                                                                                                                                                                                |
| Success on        | Allows you to set specific success conditions: Success if all files are well formed, Success if at least x files are well formed, or Success when number of bad formed files less than.                        |
| Result files name | Specify which kind of filenames to add to the internal result file names: all filenames, only well formed filenames, or only bad filenames.                                                                    |
| Result file names |                                                                                                                                                                                                                |
| Add filename      | <p>Add the checked XML filenames to the workflow action result. The available options are:</p><ul><li>Add all filenames</li><li>Add only well-formed filenames</li><li>Add only bad-formed filenames</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/workflows/actions/xmlwellformed.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.
