Expand description
DTD declarations handling (§24, §85 Phase 6).
Internal subsets, external subsets, element declarations, attribute declarations, default attributes, notations, content models.
This module provides the foundational types and functions for DTD validation, used by the validation, RELAX NG, XML Schema, and Schematron modules.
Enums§
- Content
Model Result - Result of content model validation.
Functions§
- add_
attribute_ ⚠decl - Add an attribute declaration to a DTD.
- add_
element_ ⚠decl - Add an element declaration to a DTD.
- add_
notation_ ⚠decl - Add a notation declaration to a DTD.
- copy_
attribute_ ⚠decl - Deep copy an attribute declaration.
- copy_
content_ ⚠model - Deep copy an element content model tree.
- copy_
dtd ⚠ - Deep-copy a DTD: name, external identifiers, and all declaration tables.
- copy_
element ⚠ - Deep copy an element declaration.
- copy_
notation ⚠ - Deep copy a notation declaration.
- create_
content_ ⚠model - Create a new element content model node.
- create_
int_ ⚠subset - Create an internal subset (DTD) for a document.
- free_
attribute ⚠ - Free an attribute declaration.
- free_
content_ ⚠model - Free an element content model tree.
- free_
dtd ⚠ - Free a DTD and all its declarations.
- free_
element ⚠ - Free an element declaration and its content model.
- free_
notation ⚠ - Free a notation declaration.
- get_
attribute_ ⚠decl - Look up an attribute declaration by element name and attribute name.
- get_
element_ ⚠decl - Look up an element declaration by name.
- get_
element_ ⚠decl_ created - UPSTREAM-PARITY (valid.c xmlGetDtdElementDesc2): lookup an element declaration, creating an UNDEFINED placeholder when missing. The placeholder is registered in the elements table but NOT linked into the DTD’s child list (the attribute-decl path that triggers this leaves the element undeclared).
- get_
int_ subset - Get the internal subset of a document.
- get_
notation_ ⚠decl - Look up a notation declaration by name.
- new_dtd⚠
- Create a new DTD.
- valid_
content_ ⚠model - Validate content (a list of element names) against a content model, taking occurrence indicators into account.