XML Converter transforms data between XML and JSON formats. Use when integrating with systems that require XML or when parsing XML responses.
How to Add a XML Converter
1
Click the Logic Processor icon in your flow
2
Select XML Converter from the list
3
Configure the data
4
Click Ok to save

Configuration
| Field | Description | Required |
|---|---|---|
| Name | Name for the conversion step in the flow | Yes |
| Mode | Direction of conversion: XML → JSON or JSON → XML | Yes |
| Data | The input data (XML or JSON) to convert | Yes |
Conversion Modes
| Mode | Use When |
|---|---|
| XML → JSON | You need to map XML fields or transform incoming XML data into standard JSON structures. |
| JSON → XML | You need to create XML requests or SOAP payloads to send to external systems. |
Key Conversion Rules
XML → JSON
Nested objects
<Customer><Name>Ali</Name></Customer>
→ { "Customer": { "Name": "Ali" } }
Arrays become repeated elements
<Items>
<Item>Apple</Item>
<Item>Orange</Item>
</Items>
<Item>Apple</Item>
<Item>Orange</Item>
</Items>
→ { "Items": { "Item": ["Apple", "Orange"] } }
Attributes use @_ prefix
<Item id="123">Apple</Item>
→ { "Item": { "@_id": "123", "#text": "Apple" } }
Null values
<Email xsi:nil="true"/>
→ { "Email": null }
JSON → XML
Nested objects
{ "Customer": { "Name": "Ali" } }
→ <Customer><Name>Ali</Name></Customer>
Arrays become repeated elements
{ "Items": { "Item": ["Apple", "Orange"] } }
→ <Items>
<Item>Apple</Item>
<Item>Orange</Item>
</Items>
<Item>Apple</Item>
<Item>Orange</Item>
</Items>
Attributes from @_ prefix
{ "Item": { "@_id": "123", "#text": "Apple" } }
→ <Item id="123">Apple</Item>
Null values
{ "Email": null }
→ <Email xsi:nil="true"/>
Related Articles
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article