Skip to main content

Module dtd

Module dtd 

Source
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§

ContentModelResult
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.