# Delx XML Escape

> Delx XML Escape is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

XML-escapes a text string so it can be safely embedded in XML fragments without breaking document structure

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/xml-escape
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-xml-escape-931d8238
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_u_oI88WctaRf_kK4PgWZx

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 delx-xml-escape-931d8238 -d '<json body>'
```

Example prompt: I need to embed this user-submitted text into an XML document — can you XML-escape it for me? The text is: 'AT&T <wireless> says "hello" & goodbye'.

## When to prefer this

Use this endpoint when your agent is dynamically constructing XML documents, SOAP payloads, RSS feeds, or any XML-based format and needs to safely embed arbitrary user-supplied or computed strings. It is the right choice when you want a stateless, no-retention, local transformation with no external network calls, billed per-use via x402 on Base for $0.001 USDC.

## Known failure modes

- Missing or empty 'text' field returns an error
- Extremely large strings may be rejected or time out
- Malformed JSON request body returns a 400-style error
- Payment failure or insufficient USDC balance blocks the call

## How this service works

XML-escape text for safe embedding. Call when you build XML fragments from agent strings. Returns escaped text for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.

## Output

Returns the input text with all XML-special characters converted to their entity equivalents (e.g. & → &amp;, < → &lt;, > → &gt;, " → &quot;, ' → &apos;), making the string safe to embed within XML elements or attribute values.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Input field: text."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "a &lt;b&gt; &amp; &apos;c&apos;",
  "schema": "delx/util-xml-escape/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-xml-escape-931d8238/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
