Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 2.64 KB

schema-validation.md

File metadata and controls

41 lines (28 loc) · 2.64 KB

Validation against declared schema

Version: 1

Purpose: Verify that all XML documents validate against the XML schema(s) declared in the schemaLocation attribute.

Prerequisites

Test method

  • Verify for each XML document that in the root element a schemaLocation attribute is provided. Otherwise report noSchemaLocation
  • Validate each document against the schema(s) specified in the xsi:schemaLocation attribute using strict XML schema validation. Otherwise report invalidSchema.

Reference(s):

Test type: Automated

Messages

Identifier Message text (parameters start with '$')
noSchemaLocation XML document '$filename': The root element does not have an xsi:schemaLocation attribute. The document cannot be validated.
invalidSchema XML document '$filename': The document is not valid. The XML parser has identified the following issues: $issues

Contextual XPath references

The namespace prefixes used as described in README.md.

Abbreviation XPath expression
schemaLocation /*[@xsi:schemaLocation]