Expand description
Zero-copy lexical XML events and deterministic XML serialization.
This module is the parser-neutral boundary used before semantic DOM construction. The public event model intentionally does not expose the implementation tokenizer, so consumers can share source ranges, escaping, and serialization without inheriting a parser’s tree semantics.
Structs§
- Attribute
- A borrowed attribute from one start tag.
- Declared
Namespace Prefixes - Namespace prefixes declared directly by one lexical opening tag.
- Name
- A borrowed qualified XML name.
- Scanner
- Pull-based, zero-copy lexical scanner.
- Start
Tag - A complete start or empty-element tag.
- Writer
- Deterministic UTF-8 XML writer for generated markup.
Enums§
Functions§
- declared_
namespace_ prefixes - Parse the namespace prefixes declared directly by one lexical opening tag.
- decode_
numeric_ character_ reference - Decode the portion of an XML numeric character reference after
&#. - decode_
references - Expand the five predefined entities and XML character references.
- escape_
attribute - Escape a double-quoted XML attribute value.
- escape_
text - Escape XML character data.
- is_
qname - Return whether
valueis an XML Namespaces 1.0QName.