{"slug":"saylorinnovations-com-api-convert-xml-to-json-305aea","title":"Convert XML to JSON with attributes as @keys, repeated elements as arrays, CDATA","host":"saylorinnovations.com","method":"GET","resource":"https://saylorinnovations.com/api/convert/xml-to-json","category":"other","description":"Convert XML to JSON with attributes as @keys, repeated elements as arrays, CDATA and entities handled, using a parser that rejects DOCTYPE and entities","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":521,"reported_calls_30d":0,"reported_payers_30d":0,"networks":["eip155:137","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"xml":"<order id=\"7\"><item sku=\"a\">pen</item><item sku=\"b\">book</item><note>Hi &amp; bye</note></order>"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"properties":{"xml":{"description":"XML document, up to 12000 characters","type":"string"}},"required":["xml"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"elements":{"description":"Number of elements parsed","type":"number"},"json":{"description":"The document as JSON: attributes as @keys, text as #text, repeated elements as arrays","type":"object"},"max_depth":{"description":"Max depth","type":"number"},"note":{"description":"Caveat or context for reading the result","type":"string"},"root":{"description":"Name of the root element","type":"string"},"source":{"description":"Data source the values come from","type":"string"}},"required":["root","json"],"type":"object"},"type":{"const":"json","type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":521,"error":null}],"description_full":"Convert XML to JSON with attributes as @keys, repeated elements as arrays, CDATA and entities handled, using a parser that rejects DOCTYPE and entities","last_updated":"2026-10-20T14:45:16.364Z","schemes":["exact"]}