# tFileOutputMSXML

Creates a complex multi-structured XML file, using data structures (schemas) coming from several incoming Row flows.

## tFileOutputMSXML Standard properties

These properties are used to configure tFileOutputMSXML running in the Standard Job framework.

The Standard tFileOutputMSXML component belongs to the File family.

The component in this framework is available in all Talend products.

## Basic settings

| Properties | Description |
| --- | --- |
| File Name | Name and path to the file to be created and or the variable to be<br>used.<br><br>For further information about how to define and use a variable in a Job, see [Using contexts and variables](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/contexts-and-variables).<br><br>Information noteWarning: Use absolute path (instead of relative path) for<br>this field to avoid possible errors. |
| Configure XML tree | Opens the dedicated interface to help you set the XML mapping. For<br>details about the interface, see [Defining the MultiSchema XML tree](https://help.qlik.com/talend/en-US/components/8.0/ms-xml-connectors/defining-multischema-xml-tree). |

## Advanced settings

| Properties | Description |
| --- | --- |
| Create directory only if not exists | This check box is selected by default. It creates the directory<br>that holds the output delimited file, if it does not already<br>exist. |
| Advanced separator (for numbers) | Select this check box to modify the separators used for<br>numbers:<br><br><br>Thousands separator: define<br>separators for thousands.<br><br><br>Decimal separator: define<br>separators for decimals. |
| Encoding | Select the encoding from the list or select Custom and define it manually. This field is<br>compulsory for DB data handling. |
| Don't generate empty file | Select this check box if you do not want to generate empty files. |
| Trim the whitespace characters | Select this check box to remove leading and trailing whitespace<br>from the columns. |
| Escape text | Select this check box to escape special characters. |
| tStatCatcher Statistics | Select this check box to gather the Job processing metadata at a<br>Job level as well as at each component level. |

## Global Variables

| Variables | Description |
| --- | --- |
| Global Variables | NB\_LINE: the number<br>of rows read by an input component or transferred to an output component. This is an<br>After variable and it returns an integer.<br><br><br>ERROR\_MESSAGE: the error message generated by the<br>component when an error occurs. This is an After variable and it returns a string. This<br>variable functions only if the Die on error checkbox is<br>cleared, if the component has this checkbox.<br><br>A Flow variable functions during the execution of a component<br>while an After variable functions after the execution of the component.<br><br>To fill up a field or expression with a variable, press Ctrl+Space to access the variable list and choose the variable to use from<br>it.<br><br>For more information about variables, see [Using contexts and variables](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/contexts-and-variables). |