# agentshelf.syntexa.ch XML-to-JSON Converter

> agentshelf.syntexa.ch XML-to-JSON Converter is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-01).

Converts XML strings to JSON, rejecting DTD declarations and external entities for safety, with no network access.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/xml-to-json?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-syntexa-ch-xml-to-json-converter-e0224df3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3WYrEtGXZIVkW26JaJ59z

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentshelf-syntexa-ch-xml-to-json-converter-e0224df3 -d '<json body>'
```

Example prompt: I have this XML string and need it converted to JSON — can you do that? Here's the XML: <catalog><book id="bk101"><author>Gambardella, Matthew</author><title>XML Developer Guide</title></book></catalog>

## When to prefer this

Choose this endpoint when you need a secure, deterministic XML-to-JSON conversion without network access or LLM involvement. It is ideal when the XML must not trigger XXE vulnerabilities (DTDs and entities are blocked). Use the free sandbox endpoint POST /v1/sandbox/xml-to-json first for testing before committing $0.003 USDC per call on this paid endpoint.

## Known failure modes

- XML containing DTD declarations will be rejected
- XML with external entity references will be rejected
- Malformed or non-well-formed XML will return a parse error
- Input exceeding 200,000 characters will be rejected
- Empty XML string will be rejected
- Payment failure or insufficient USDC balance will block the request

## How this service works

Call when an agent needs XML converted to JSON (DTD and entities rejected). No network. Exact $0.003 USDC. Prefer unpaid POST /v1/sandbox/xml-to-json first.

## Output

A JSON representation of the input XML structure, with element names mapped to object keys and text content to values. DTD declarations and external entities are rejected to prevent XXE attacks. No network calls are made during conversion.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "xml": {
   "type": "string",
   "examples": [
    "<user><name>Ada</name></user>"
   ],
   "maxLength": 200000,
   "minLength": 1,
   "description": "XML document. DTD and external entities are rejected. No fetch."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshelf-syntexa-ch-xml-to-json-converter-e0224df3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
