Overview
The XML Parse command provides functionality for:- Converting XML strings into structured JSON objects
- Preserving XML hierarchy and nested elements
- Customizing attribute name prefixes in the output
Command Type
Command Type ID: 1019Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| attributeNamePrefix | string | The prefix to add to attribute names in the output. Defaults to "@" | No |
Usage Examples
Parse XML with Default Attribute Prefix
Parse XML with Custom Attribute Prefix
Parse XML with No Attribute Prefix
Output Structure
Given input XML:attributeNamePrefix: "@", the output is:
Common Use Cases
- SOAP / XML APIs: Parse XML responses from legacy or sports data APIs
- Feed Parsing: Convert XML-based data feeds into JSON for downstream processing
- Attribute Extraction: Access XML element attributes as prefixed JSON keys
Related Commands
- Decode - Decode compressed binary payloads
- Json Path - Extract fields from the parsed JSON
- Key Mapping - Remap XML-derived field names