Expand description
Type-level DTD vocabulary — Element/Attribute decls and content models.
Structs§
- AttDecl
- One row of an
<!ATTLIST element name type default>block. - Element
Decl - An
<!ELEMENT name model>declaration. - Entity
Decl - An
<!ENTITY name ...>general-entity declaration — internal (with a literal replacement text) or external (SYSTEM/PUBLIC, optionallyNDATA). Mirrors the fields lxml reads off libxml2’sxmlEntityand 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.
- Content
Model - 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). - Group
Kind - Item
- Occurrence
?/*/+per § 3.2.1 [47].One= no suffix.