# SignalHarness XML Normalize & Validate

> SignalHarness XML Normalize & Validate is a paid API for AI agents from signalharness.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Parses, normalizes, and validates an XML string, returning structural metadata including well-formedness, node count, namespaces, errors, and warnings.

## Facts

- Endpoint: POST https://signalharness.ai/api/agent/services/xml_normalize_validate/invoke
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/signalharness-xml-normalize-validate-cac358bc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tiPQwWYzVWaF6NoPsCP1r

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 signalharness-xml-normalize-validate-cac358bc -d '<json body>'
```

Example prompt: Can you validate this XML string and tell me if it's well-formed, how many nodes it has, and list any errors or warnings: '<root><child attr="val">text</child></root>'?

## When to prefer this

Choose this endpoint when you need a quick, cheap ($0.01 USDC), agent-native XML validation and normalization step — especially in automated pipelines where you need programmatic error and warning lists, node counts, and namespace extraction rather than human-readable reports. It is well-suited for pre-processing checks before XML ingestion, debugging malformed payloads, or asserting well-formedness as a pipeline gate. Prefer it over general-purpose XML libraries when operating in a microservice or agent context that benefits from an external, auditable validation call with a payment receipt.

## Known failure modes

- Empty or missing XML input returns validation error
- XML exceeding 65,536 characters is rejected by input schema
- Severely malformed input may result in parse errors surfaced in the errors array rather than a hard failure
- Payment failure or insufficient USDC balance results in 402 response before execution
- Network timeout may occur for very large documents near the size limit

## How this service works

Explore 330 pay-per-call x402 API services and 27 agent-native digital products, with Base USDC pricing, secure Polar checkout, and free discovery.

## Output

Returns a JSON object with: root element name, well-formedness boolean, total node count, structure summary string, list of namespaces, list of errors (with details), and list of warnings. Also includes a receipt with payment confirmation, execution metadata, latency, and a SHA-256 hash of the result for integrity verification.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "xml": {
   "type": "string",
   "maxLength": 65536,
   "minLength": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "replay": false,
  "result": {
   "root": "example",
   "errors": [
    "example"
   ],
   "warnings": [
    "Verify the caller-supplied data before relying on this result."
   ],
   "nodeCount": 1,
   "structure": "example",
   "namespaces": [
    {
     "name": "example",
     "value": "example"
    }
   ],
   "wellFormed": false
  },
  "status": "succeeded",
  "receipt": {
   "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
   "usage": [],
   "status": "succeeded",
   "network": "eip155:8453",
   "artifacts": [],
   "endedAtMs": 0,
   "latencyMs": 0,
   "paymentId": "example-payment",
   "receiptId": "example-receipt",
   "requestId": "example-request",
   "serviceId": "xml_normalize_validate",
   "executionId": "example-execution",
   "startedAtMs": 0,
   "amountAtomic": "10000",
   "resultSha256": "b5e29ac589d21aa3a81b58e3167709d76598c09192ae9593f7b255d5bf723448",
   "serviceVersion": "1.0.0",
   "settlementReference": "0x0000000000000000000000000000000000000000000000000000000000000000"
  },
  "artifacts": [],
  "requestId": "example-request",
  "executionId": "example-execution"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/signalharness-xml-normalize-validate-cac358bc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from signalharness.ai](https://www.zero.xyz/host/signalharness.ai/llms.txt)
