Convert XML to JSON with attributes as @keys, repeated elements as arrays, CDATA
Convert XML to JSON with attributes as @keys, repeated elements as arrays, CDATA and entities handled, using a parser that rejects DOCTYPE and entities
Answeringour last check, 2026-10-20
1 of 1checks answered this week
521 msmedian answer time
$0.01listed price per call
$0.01price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://saylorinnovations.com/api/convert/xml-to-json
| Category | Everything else |
|---|---|
| Provider host | saylorinnovations.com |
| Networks | eip155:137, eip155:42161, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 0 from 0 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-10-20 | valid payment request | 402 | $0.01 | 521 ms |
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"xml": "<order id=\"7\"><item sku=\"a\">pen</item><item sku=\"b\">book</item><note>Hi & bye</note></order>"
},
"type": "http"
}
Promised output schema (from the provider)
{
"$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"
}