Expand description
XML 1.0 parser.
A hand-rolled recursive descent parser conforming to the W3C XML 1.0
(Fifth Edition) specification. The parser builds a Document tree and
supports error recovery mode for processing malformed input.
The parser is hand-rolled (not combinator-based) because:
- libxml2’s parser is recursive descent and we need identical behavior
- Error recovery requires fine-grained control over parse state
- Push/incremental parsing requires suspendable state
- Performance — no abstraction overhead
Re-exports§
pub use push::PushParser;
Modules§
- push
- Push/incremental XML parser.
Structs§
- External
Entity Request - A request to resolve an external entity.
- Parse
Options - Parse options controlling parser behavior and security limits.
Functions§
- parse_
str - Parses an XML string with default options.
- parse_
str_ with_ options - Parses an XML string with the given options.
Type Aliases§
- Entity
Resolver - A callback for resolving external entities.