Skip to main content

Module xml

Module xml 

Source

Structs§

Limits
What one parse may take: the text’s bytes, its elements, their nesting. The default (4 MiB, 30000 elements, 48 levels) is parse’s; a reader whose own model bounds its documents otherwise names what that model can expand to (parse_with).
Name
Expanded XML name (prefixes are not identities).
Node
Element-only or text-only node; mixed content is rejected by this subset reader.

Enums§

Error
Syntax error, resource limit, or an intentionally unsupported XML construct.

Functions§

escape
Escape text/attribute content, including CR so it survives XML newline normalization.
parse
Parse a bounded XML subset. DTDs, processing instructions, comments, CDATA and mixed content are explicitly rejected. No resources are ever resolved or fetched.
parse_with
parse within other limits than the default ones.
valid_char
XML 1.0 character validity (also used before emitting document text).