Skip to main content

Valid XML Documents

An XML document can be valid. This means that there exists a set of rules describing what type of content is allowed within a document. XML defines two very different mechanisms for defining such a set of rules:

  1. Document Type Declaration (DTD) : a text file (or set of commands embedded within an XML document) that specify the rules for an XML document.

  2. XML Schema: a document that describes the rules for an XML document. Schemas are themselves written in XML.

Caché provides support for validating documents using either DTDs or XML Schemas.

Note:

This concludes this part of the tutorial. Click here to continue on to the next section.

FeedbackOpens in a new tab