Skip to main content

Module model

Module model 

Source
Expand description

Type-level DTD vocabulary — Element/Attribute decls and content models.

Structs§

AttDecl
One row of an <!ATTLIST element name type default> block.
ElementDecl
An <!ELEMENT name model> declaration.
EntityDecl
An <!ENTITY name ...> general-entity declaration — internal (with a literal replacement text) or external (SYSTEM/PUBLIC, optionally NDATA). Mirrors the fields lxml reads off libxml2’s xmlEntity and what the DTD serializer reconstructs.
Group
One Sequence or Choice with its own occurrence indicator — matches the grammar in § 3.2.1 [49] / [50].
Particle
One element-name reference or a nested Group, with its own ? / * / + indicator.

Enums§

AttDefault
XML 1.0 § 3.3.2 default declarations.
AttType
XML 1.0 § 3.3.1 attribute types.
ContentModel
XML 1.0 § 3.2 element content classifications.
DeclRef
A reference to one internal/external-subset declaration in source order, so the DTD serializer can reproduce libxml2’s declaration ordering (it walks xmlDtd.children, which is source order).
GroupKind
Item
Occurrence
? / * / + per § 3.2.1 [47]. One = no suffix.