# AISkills402 XML Repair Skill File

> AISkills402 XML Repair Skill File is a paid API for AI agents from api.aiskills402.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-23).

Purchases and downloads the XML Repair SKILL.md file — a tested AI agent skill for fixing broken XML without altering text content — paid once via x402 in USDC on Base.

## Facts

- Endpoint: GET https://api.aiskills402.com/v1/skills/xml-repair/file?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aiskills402-xml-repair-skill-file-08dc59bc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4E5lMSZQtGOP7QwoHbFNt

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 aiskills402-xml-repair-skill-file-08dc59bc
```

Example prompt: Buy me the XML Repair skill file from AISkills402 — I need it to fix broken XML in my pipeline without changing any text content.

## When to prefer this

Choose this endpoint when an AI agent needs a tested, ready-to-use SKILL.md for repairing broken XML without modifying text, and wants a one-time purchase model with permanent access and free re-downloads. Prefer this over building custom XML repair logic when you want a vetted, versioned skill file delivered instantly via x402 micropayment on Base.

## Known failure modes

- Payment not settled on Base — returns error if USDC transaction fails or is not confirmed
- Missing or invalid x402 payment header — returns 402 Payment Required
- Network timeout during blockchain settlement verification
- Invalid HTTP method — only GET and HEAD are accepted
- Redownload token not yet issued if settlement is still pending

## How this service works

XML Repair: Fix Broken XML, Change No Text — Repairs broken XML so a standard parser accepts it, without changing a single text node, attribute value, comment or CDATA section, and answers with the XML only, no code fence. Fixes a raw ampersand or less-than sign in text or in an attribute value, an HTML entity name such as nbsp that plain XML does not define, an attribute value without quotes, an end tag that is missing in one place only, a declaration that is not the first thing in the file, a…

## Output

Returns a JSON object containing the SKILL.md file content (name, content string, encoding), the skill identifier ('xml-repair'), version number (e.g. '1.0.0'), a SHA256 checksum of the file, a blockchain settlement receipt with transaction hash and settled status, and a redownload token plus URL for future free re-downloads.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "file": {
   "name": "SKILL.md",
   "content": "<the SKILL.md file>",
   "encoding": "utf-8"
  },
  "name": "XML Repair: Fix Broken XML, Change No Text",
  "skill": "xml-repair",
  "sha256": "<sha256 of SKILL.md>",
  "receipt": {
   "tx": "0x<settlement transaction>",
   "settled": true
  },
  "version": "1.0.0",
  "redownload": {
   "url": "<api>/v1/purchases/<token>",
   "token": "<64 hex chars>"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aiskills402-xml-repair-skill-file-08dc59bc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.aiskills402.com](https://www.zero.xyz/host/api.aiskills402.com/llms.txt)
