> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apinizer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XML Transformer

> You can transform XML data using XSLT expressions with XML to XML, perform XML to JSON transformations, and test data transformation operations

Information about how data transformation occurs can be learned with XSLT examples in the **Examples** section.

<Frame caption="XML to XML Transformer">
  <img src="https://mintcdn.com/apinizer/RRMb-IlNV4OGXuzC/images/develop/test-debug-araclari/toolbox/xml-transformer-1.png?fit=max&auto=format&n=RRMb-IlNV4OGXuzC&q=85&s=c1c4151a3c63ba4862e36942b5e84973" alt="XML to XML Transformer" width="800" height="600" data-path="images/develop/test-debug-araclari/toolbox/xml-transformer-1.png" />
</Frame>

<Frame caption="XML to JSON Transformer">
  <img src="https://mintcdn.com/apinizer/RRMb-IlNV4OGXuzC/images/develop/test-debug-araclari/toolbox/xml-transformer-2.png?fit=max&auto=format&n=RRMb-IlNV4OGXuzC&q=85&s=82304cb8667a61c95c7e3bcdee365ce0" alt="XML to JSON Transformer" width="800" height="600" data-path="images/develop/test-debug-araclari/toolbox/xml-transformer-2.png" />
</Frame>

The fields used for XML to JSON configuration are shown in the table below.

| **Field**                                                                            | **Description**                                                                                                                                                                                                                                                                                                                                               |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Ignore fields with NULL values** <em>(Ignore fields with NULL values)</em>         | Checked so that elements with NULL values are not placed in the JSON message.                                                                                                                                                                                                                                                                                 |
| **Ignore EMPTY fields** <em>(Ignore EMPTY fields)</em>                               | Checked so that elements with empty values are not placed in the JSON message.                                                                                                                                                                                                                                                                                |
| **Write Numbers as Strings** <em>(Write Numbers as Strings)</em>                     | Checked so that elements containing numeric values are written as String in the JSON message.                                                                                                                                                                                                                                                                 |
| **Use xsi:nil="true" for NULL values** <em>(Use xsi:nil="true" for NULL values)</em> | Checked to use "null" in the JSON message for XML elements with xsi:nil="true" value.                                                                                                                                                                                                                                                                         |
| **Unwrap Element** <em>(Unwrap Element)</em>                                         | If checked, it converts the inside (children) of the element given with Source XPath, if not checked, it converts the element itself (with its contents/children).                                                                                                                                                                                            |
| **Paths for Arrays within message** <em>(Paths for Arrays within message)</em>       | Specifies which parts should be interpreted as Array in the JSON message. Each Path is written starting from the level of Source XPath (or from the top level if Source XPath is not given) and placing # between levels. Example: The expression envelope#body#abc indicates that the abc element inside body inside envelope will be processed as an array. |
