Skip to main content
Parses an XML string into a data object. Use this when a value arrives as XML wrapped up in a single piece of text, for example a JSON response from a service that holds an XML document in one of its fields, or a message whose body is XML. It reads the text and turns the tags and their contents into structured data, so values that were buried inside XML elements become regular fields you can read and map. Element attributes appear as fields prefixed with @, so <product sku="A1"> becomes a field named @sku.

Fields

Sample data

FieldValue
Automatically type cast valuesOn (default)
Input:
{
    "payload": "<product sku=\"A1\" qty=\"007\"><name>Wool scarf</name></product>"
}
Output:
{
    "payload": {
        "@sku": "A1",
        "@qty": 7,
        "name": "Wool scarf"
    }
}