Skip to main content
The XML Parse command (Command Type: 1019) parses an XML string into a structured JSON object, preserving the hierarchy and attributes of the original XML.

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: 1019

Parameters

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:
With default 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
  • Decode - Decode compressed binary payloads
  • Json Path - Extract fields from the parsed JSON
  • Key Mapping - Remap XML-derived field names