XML Converter

Created by Reachware Support, Modified on Thu, 2 Apr at 3:03 PM by Reachware Support

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

FieldDescriptionRequired
NameName for the conversion step in the flowYes
ModeDirection of conversion: XML → JSON or JSON → XMLYes
DataThe input data (XML or JSON) to convertYes

Conversion Modes

ModeUse When
XML → JSONYou need to map XML fields or transform incoming XML data into standard JSON structures.
JSON → XMLYou 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>
{ "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>

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

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article