# tEDIFACTtoXML

Transforms an EDIFACT message file into the XML format for better readability to users and compatibility with processing tools.

This component reads a United Nations/Electronic Data Interchange For Administration, Commerce and Transport (UN/EDIFACT) message and transforms it into the XML format according to the EDIFACT version and the EDIFACT family.

## tEDIFACTtoXML Standard properties

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

The Standard tEDIFACTtoXML component belongs to the XML family.

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

## Basic settings

| Properties | Description |
| --- | --- |
| Schema and Edit<br>Schema | A schema is a row description, it defines the number of fields to<br>be processed and passed on to the next component.<br><br>The schema of this component is fixed and read-only, with only<br>one column: *document*. |
| EDI filename | Filepath to the EDIFACT message file to be transformed. |
| EDI version | Select the EDIFACT version of the input file. |
| Ignore new line | Select this check box to skip carriage returns in the input<br>file. |
| Die on error | Select this check box to stop Job execution when an error is<br>encountered. By default, this check box is cleared, and therefore<br>illegal rows are skipped and the process is completed for the error<br>free rows. |

## Advanced settings

| Properties | Description |
| --- | --- |
| 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 | 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). |

## Usage

| Usage guidance | Description |
| --- | --- |
| **Usage rule** | This component is usually linked to an output component to gather<br>the transformation result. |

**Related concepts**

* [Reading an EDIFACT message file and saving it to XML](https://help.qlik.com/talend/en-US/components/8.0/xml/tedifacttoxml-tfileoutputxml-reading-edifact-message-file-and-saving-it-to-xml-this)