{"id":"xml-exc-c14n-validate","version":"1.0.0","description":"Check whether XML is already in Exclusive XML Canonicalization 1.0 form.","supported_operations":["validate exclusive xml canonical form","check xml is already exclusive c14n","exclusive canonicalization idempotence test","detect non canonical exclusive xml","is xml in w3c exc-c14n form","reject xml declaration in canonical form check","check exclusive canonical attribute order","exclusive c14n well formed canonical check"],"unsupported_operations":["xml schema validation","xml signature verification","repairing non-canonical xml","inclusive c14n comparison"],"semantics":["Returns valid true and reason ok only when xml is byte-for-byte the Exclusive XML Canonicalization 1.0 form of itself under the same with_comments and inclusive_prefixes options.","A well-formed document that differs, including an XML declaration, a BOM, CRLF, a self-closing tag, a reordered attribute, or an unused namespace declaration, returns valid false and reason not_exclusive_canonical.","Omitted with_comments means false and omitted inclusive_prefixes means an empty list. Those defaults are part of the comparison.","Malformed XML throws invalid_input. That includes a comment whose content contains \"--\" or ends with \"-\"; those are not reported as valid false. DTD syntax and XML 1.1 throw unsupported_input. A declared limit throws limit_exceeded.","valid true is paired with reason ok, and valid false is paired with reason not_exclusive_canonical. This check does not repair the document and does not verify a signature.","Disclaimer: format transform only; provides no confidentiality, integrity, or authenticity."],"limits":{"max_input_bytes":8192,"max_canonical_bytes":8192,"max_output_bytes":49152,"max_depth":32,"max_nodes":1024,"max_attributes_per_element":32,"max_inclusive_prefixes":16,"max_name_bytes":128},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["xml"],"properties":{"xml":{"type":"string","minLength":1,"maxLength":8192},"with_comments":{"type":"boolean"},"inclusive_prefixes":{"type":"array","maxItems":16,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":128,"pattern":"^(#default|[A-Za-z_][A-Za-z0-9._-]*)$"}}}},"output_schema":{"type":"object","additionalProperties":false,"required":["valid","reason"],"properties":{"valid":{"type":"boolean"},"reason":{"type":"string","enum":["ok","not_exclusive_canonical"]}}},"examples":[{"input":{"xml":"<n1:elem1 xmlns:n1=\"http://b.example\">\n    content\n</n1:elem1>"},"output":{"valid":true,"reason":"ok"}},{"input":{"xml":"<a/>"},"output":{"valid":false,"reason":"not_exclusive_canonical"}},{"input":{"xml":"<a></a>"},"output":{"valid":true,"reason":"ok"}}],"execute_url":"/v1/tools/xml-exc-c14n-validate/versions/1.0.0/execute"}