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.