XML Validate

POST /v1/convert/xml-validate
curl -X POST "https://convert.toolkitapi.io/v1/convert/xml-validate" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"xml": "<user><name>Alice</name></user>"}'
# See curl example
// See curl example
Response 200 OK
{
  "valid": true,
  "errors": [],
  "error_count": 0
}

How to Use

1

Send a POST request to /v1/convert/xml-validate with an xml string and optional xsd schema string.

About This Tool

Validate XML for well-formedness and optionally against an XSD (XML Schema Definition). Returns validation status and a list of errors with line numbers.

XXE processing is disabled. External DTD and entity references are blocked for security.

Why Use This Tool

Frequently Asked Questions

Is XSD validation optional?
Yes — without an XSD, only well-formedness is checked. With an XSD, full schema validation is performed.
Are external DTDs loaded?
No — external DTD and entity references are blocked for security.

Start using XML Validate now

Get your free API key and make your first request in under a minute.