Expand description
Contains high-level interface for a pull-based XML parser.
Modulesยง
- buffered_
reader ๐ - This is an implementation of
Reader
for reading from aBufRead
as underlying byte stream. - ns_
reader ๐ - A reader that manages namespace declarations found in the input and able to resolve qualified names to expanded names.
- slice_
reader ๐ - This is an implementation of
Reader
for reading from a&[u8]
as underlying byte stream. This implementation supports not using an intermediate buffer as the byte slice itself can be used to borrow from. - state ๐
Macrosยง
- read_
event_ ๐impl - read_
to_ ๐end - Generalization of
read_to_end
method for buffered and borrowed readers - read_
until_ ๐close - Read bytes up to the
>
and skip it. This method is expected to be called after seeing the<
symbol and skipping it. Inspects the next (current) symbol and returns an appropriateEvent
:
Structsยง
- Binary
Stream - A direct stream to the underlying
Reader
s reader which updatesReader::buffer_position()
when read from it. - Config
- A struct that holds a parser configuration.
- NsReader
- A low level encoding-agnostic XML event reader that performs namespace resolution.
- Reader
- A low level encoding-agnostic XML event reader.
Enumsยง
- Bang
Type ๐ - Possible elements started with
<!
- Parse
State ๐ - Possible reader states. The state transition diagram (
true
andfalse
shows value ofConfig::expand_empty_elements
option): - Read
Text ๐Result - Result of an attempt to read XML textual data from the reader.
Traitsยง
- XmlSource ๐
- Represents an input for a reader that can return borrowed data.
Type Aliasesยง
- Span
- Range of input in bytes, that corresponds to some piece of XML