{"uid":"cap_zl4YY5MKw16-BR21slUfJ","slug":"xml-to-json-converter-56c2701d","name":"XML to JSON Converter","description":"XML to JSON converter producing an element tree ({name, attrs, text, children}) that preserves order, attributes, CDATA and repeated elements, plus the element count. Handles up to 5,000 elements. Sitemaps, feeds, SOAP bodies and config files. $0.01 per conversion.","url":"https://intel.rallylive.ca/dev/xml-to-json","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_v9QSMoBQ2BfQLUU279SR9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts XML documents into a structured JSON element tree preserving order, attributes, CDATA, and repeated elements, with element count","exampleAgentPrompt":"Convert this XML sitemap to JSON for me — I need the full element tree with attributes and repeated elements preserved, and a count of how many elements there are total.","exampleUseCases":[{"title":"Parse SOAP API response","prompt":"I got a SOAP XML response back from a legacy service and I need it converted to JSON so I can process it in my code — can you convert it and preserve all the attributes and nested elements?"},{"title":"Ingest RSS feed as JSON","prompt":"Take this RSS feed XML and convert it to a JSON element tree for me — I need the repeated item elements preserved and all attributes included."},{"title":"Read XML config file structure","prompt":"I have an XML config file and I need it converted to a structured JSON object that keeps the element order, CDATA sections, and all attributes intact — can you do that?"}],"resultDescription":"Returns a JSON object containing a structured element tree where each node has 'name' (tag name), 'attrs' (attributes as key-value pairs), 'text' (text content or CDATA), and 'children' (array of child nodes), along with a top-level element count. Handles up to 5,000 elements.","failureModes":["Malformed or invalid XML input returns a parse error","XML documents exceeding 5,000 elements may be rejected or truncated","Missing or empty 'xml' query parameter returns a validation error","Very large XML payloads may time out","Non-XML content submitted as XML will fail parsing"],"whenToPreferThis":"Choose this endpoint when you need a faithful, structure-preserving XML-to-JSON conversion that retains attributes, CDATA, element order, and repeated elements — particularly for sitemaps, RSS/Atom feeds, SOAP bodies, and XML config files. Prefer it over generic parsers when you need the element count and a consistent tree format ({name, attrs, text, children}) for programmatic processing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:06:20.592Z","isFirstParty":false}