xml_to_json
Convert XML content into JSON objects, preserving attributes, namespaces, CDATA, and nested elements for parsing RSS feeds, SOAP responses, and legacy XML data.
Instructions
Convert XML content to a JSON object. Handles attributes, namespaces, CDATA sections, and nested elements. Useful for parsing RSS feeds, SOAP responses, and legacy XML data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | XML content to convert | |
| pretty | No | Pretty-print JSON output (default: true) | |
| preserve_attributes | No | Include XML attributes prefixed with @ (default: true) |