util_xml_json
XML to JSON converter — Convert XML (RSS/Atom feeds, SOAP responses, sitemaps, config files) to clean JSON offline: attributes as @name, mixed text as #text, repeated child elements become arrays, CDATA kept as text, entities decoded, comments/processing instructions/DOCTYPE skipped; tolerant of unclosed tags (reported as warnings). Pass xml= (text) or url= (fetches the XML document, max 1 MB). Options: attrs=false drops attributes, strip_ns=true removes namespace prefixes. Returns json, root name and stats (elements, attributes, depth). Price: $0.002 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"xml": "<xml>"
},
"name": "util_xml_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | XML text, e.g. <note><to>Ann</to><to>Bob</to></note> (or use url= instead) |