XML Action Block
The XML Action Block converts JSON data to XML format with configurable attributes and optional XML header declaration.
No authentication required. Uses the json2xml library for conversion.
Configuration
- JSON: The JSON data to convert to XML (supports
{{variables}}) - Attributes Field: Field name used for XML tag attributes (default:
attr) - Add Header: Whether to include the
<?xml version="1.0"?>declaration
Example
Input JSON:
{
"person": {
"attr": { "id": "1" },
"name": "John",
"age": "30"
}
}Output XML:
<?xml version="1.0"?>
<person id="1"><name>John</name><age>30</age></person>Use Cases
- Converting API responses to XML for legacy system integration
- Generating XML payloads for SOAP services
- Creating XML configuration files from structured data
- Transforming data for systems that require XML format