The definition of an XML document, which identifies the XML tags and includes the rules for their interrelationships; for example, there must be at least one B tag within every tag A, or there can only be B tags within an A tag, and so forth. This is like any common relationship in a database, such as each customer can be associated to order records, but not to payroll records, or each department must have one or more employees.