# Delx Commerce XML Escape

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

Escapes special XML characters in a text string, returning a safely encoded version suitable for embedding in XML documents.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/xml-escape?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-xml-escape-50f49047
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AIK4L_6YT2cZ-QSZnXRri

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-commerce-xml-escape-50f49047 -d '<json body>'
```

Example prompt: Can you XML-escape this string for me: 'Hello <world> & 'friends'" — I need to safely embed it inside an XML element?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call XML character escaping operation without setting up any account or subscription. Ideal for agents that occasionally need to sanitize strings for XML documents and want verifiable, on-demand microtransaction pricing via USDC. Prefer this over a local utility when operating in a serverless or constrained environment where importing XML libraries is not practical.

## Known failure modes

- Missing or empty 'text' field returns an error
- Extremely large input strings may be rejected or time out
- Malformed JSON request body returns a parse error
- Network or payment processing failure via x402 protocol results in no response

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object containing the XML-escaped version of the input text, with characters like <, >, &, ', and " replaced by their corresponding XML entities (&lt;, &gt;, &amp;, &apos;, &quot;), along with a schema identifier string.

## 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-commerce-xml-escape-50f49047/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
