Schema validation

Schema validation is an action performed to check whether XML document conforms to its schema. Validation is performed using XML validator.

Validation result either states that XML document is valid (conforms to schema) or lists errors found. Each error contains a line reference and an error message.

Schema errors are technical in nature. In other words, they often indicate only when a particular element (the tag) should not be present in detected location, therefore the knowledge of how the matter should be corrected is dependent on the know-how of the person involved. XML validation and analysis of the list of errors are therefore suitable only for the highly skilled specialist in the field. Therefore actual content experts have difficulties to participate in the error correction.

Limitations of schema validation

XML validation is limited to find only structural issues from the XML documents. XML validation cannot find content errors or errors related to the conditional requirements, sum checks, or other integrity constraints. Complete XML validation therefore requires a rule-based validation in addition to the basic XML validation in order to cover the technical and business rules. Truugo provides test profile concept which makes it possible to perform both XML validation and the rule-based validation at once.

XML validation is performed using specific XML tools.

XML tools