XML exc c14n subtree

xml-exc-c14n-subtree · version 1.0.0 · Structured formats · free, no key needed

Exclusive XML Canonicalization 1.0 of one selected element and its descendants.

Use when you need to: exclusive canonicalization of an xml subtree · canonicalize one xml element and descendants · exc-c14n document subset by element name.

Decide before calling

Read the versioned contract and the supported scope below. Reuse xml-exc-c14n-subtree@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use xml-exc-c14n-subtree@1.0.0 for exclusive canonicalization of an xml subtree. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "xml": "<n1:elem1 xmlns:n1=\"http://b.example\">\n    content\n</n1:elem1>",
  "element": "n1:elem1"
}

Response:

{
  "result": {
    "canonical_xml": "<n1:elem1 xmlns:n1=\"http://b.example\">\n    content\n</n1:elem1>",
    "utf8_bytes": 62,
    "element": "n1:elem1",
    "occurrence": 1
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "xml-exc-c14n-subtree",
  "version": "1.0.0",
  "input": {
    "xml": "<n1:elem1 xmlns:n1=\"http://b.example\">\n    content\n</n1:elem1>",
    "element": "n1:elem1"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/xml-exc-c14n-subtree/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"xml":"<n1:elem1 xmlns:n1=\"http://b.example\">\n    content\n</n1:elem1>","element":"n1:elem1"}'

The machine-readable contract is at /v1/tools/xml-exc-c14n-subtree/versions/1.0.0.

CLI

node cli.mjs run xml-exc-c14n-subtree 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.