XML validation

From HandWiki
Revision as of 13:15, 2 November 2020 by imported>WikiG (change)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.[1] A valid document also respects the rules dictated by a particular DTD or XML schema.[2] 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.

Standards

  • OASIS CAM is a standard specification that provides contextual validation of content and structure that is more flexible than basic schema validations.
  • Schematron, a method for advanced XML validation.

Tools

References

Articles discussing XML validation