Skip to main content

Crate rusty_xml_sax

Crate rusty_xml_sax 

Source
Expand description

SAX2 events and an xmllint --sax debug dump.

Structured equality is the gate. The debug printer exists so a line-for-line diff against pinned xmllint --sax is possible; C’s %.4s attribute quirk (reads past the value into the input) is reproduced when value_input_off is set.

Structs§

NullSax
A handler that discards every callback, using the trait’s default bodies.
SaxAttr
Attribute as delivered to startElementNs.
SaxRecorder
Records every callback for the event-exact gate.

Enums§

SaxEvent
One SAX2 callback as recorded for the event-exact gate.

Traits§

SaxHandler
SAX2 handler. Default methods are no-ops so a recorder can override a subset.

Functions§

event_to_xmllint_debug
Format one event the way pinned xmllint --sax prints it.
xml_sax2_init_default_sax_handler
xmlSAX2InitDefaultSAXHandler is a no-op beyond constructing a recorder.
xml_sax_version
xmlSAXVersion — we speak SAX2.