Crate dtd_parser

Source

Structs§

AttDef
AttValue
AttlistDecl
属性可提供有关元素的额外信息。
CDATA
字符数据(character data)。
Choices
CommentDecl
ElementDecl
元素是 XML 以及 HTML 文档的主要构建模块。
EntityRef
Enumeration
Enumeration ::= ‘(’ S? Nmtoken (S? ‘|’ S? Nmtoken)* S? ‘)’ [VC: Enumeration] [VC: No Duplicate Tokens]
MixedPCDATA
Name
See: https://www.w3.org/TR/REC-xml/#NT-Name
Nmtoken
Nmtoken ::= (NameChar)+
Nmtokens
Nmtokens ::= Nmtoken (#x20 Nmtoken)*
NotationType
NotationType ::= ‘NOTATION’ S ‘(’ S? Name (S? ‘|’ S? Name)* S? ‘)’ [VC: Notation Attributes] [VC: One Notation Per Element Type] [VC: No Notation on Empty Element] [VC: No Duplicate Tokens]
PCDATA
被解析的字符数据(parsed character data) 这PCDATA 是会被解析器解析的文本。些文本将被解析器检查实体以及标记。
PEReference
PubidLiteral
Seq
SystemLiteral

Enums§

AttType
CharRef
Child
DefaultDecl
ElementCategory
ElementType
EnumeratedType
EnumeratedType ::= NotationType | Enumeration
NameOrReference
Reference
Repeatable
How namy accurrences of child.

Functions§

parse
parse_str
resolve_entity_definitions
resolve_references