---
title: XML validation
slug: xml-validation
qid: Q595926
snapshot: xml-validation-068526-160a2319413653ba
content_hash: 160a2319413653bab6caa78e11955c1a2cf3f76782e24f0f3b2958222899cc5f
license: CC BY-SA 4.0
source: https://en.wikipedia.org/w/index.php?oldid=1367422465
tags: [22961013, 23468805, 24043274, 24623845, 28537667, 28698307, 33410312]
---

# XML validation

> [!note] Provenance
> Snapshot `xml-validation-068526-160a2319413653ba` · content root `160a2319413653ba…`
> Derived from <https://en.wikipedia.org/w/index.php?oldid=1367422465> · Licensed CC BY-SA 4.0

XML validation is the process of checking a document written in XML (eXtensible Markup Language) to confirm that it is both well-formed and also "valid" in that it follows a defined structure. A well-formed document follows the basic syntactic rules of XML, which are the same for all XML documents. A valid document also respects the rules dictated by a particular DTD or XML schema. Automated tools – validators – can perform well-formedness tests and many other validation tests, but not those that require human judgement, such as correct application of a schema to a data set.

XML validation is the process of checking a document written in XML (eXtensible Markup Language) to confirm that it is both well-formed and also "valid" in that it follows a defined structure. A well-formed document follows the basic syntactic rules of XML, which are the same for all XML documents. A valid document also respects the rules dictated by a particular DTD or XML schema. Automated tools – validators – can perform well-formedness tests and many other validation tests, but not those that require human judgement, such as correct application of a schema to a data set.
