{"uid":"cap_Wif_PAePg-MQB6GuApE6r","slug":"agent402-tools-xml-well-formedness-validator-42acc81c","name":"agent402.tools XML Well-Formedness Validator","description":"Check XML well-formedness: balanced open/close tags, proper nesting, unescaped entities. No DTD/schema validation — syntax only. Pure CPU, deterministic.","url":"https://agent402.tools/api/xml-validate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"xml":{"type":"string","description":"XML string to validate"}}},"responseSchema":{"type":"json","example":{"valid":true,"errors":[],"rootTag":"root","tagCount":2}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_H3sm4x3UJfs1F0_2wUqnl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks whether an XML string is syntactically well-formed — balanced tags, proper nesting, and properly escaped entities — without performing DTD or schema validation.","exampleAgentPrompt":"Can you check if this XML is well-formed — balanced tags, proper nesting, no unescaped special characters: '<root><item id=\"1\">Hello & world</item></root>'?","exampleUseCases":null,"resultDescription":"Returns whether the XML string is syntactically well-formed, and if not, provides details about syntax errors such as unbalanced tags, improper nesting, or unescaped entities.","failureModes":["Missing or empty 'xml' field returns a validation error","XML with unescaped ampersands or angle brackets flagged as malformed","Extremely large XML strings may time out","Non-UTF-8 encoded content may cause parse errors"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic, pure syntax check of XML well-formedness without any DTD or schema validation overhead. Ideal for pre-processing pipelines that need to confirm XML can be parsed before further processing, or when you want to catch basic structural errors like unclosed tags or bad entity encoding.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:03.630Z","isFirstParty":false}