xml-rs
xml-rs copied to clipboard
";<?" breaks StartDocument guarantees and is treated as normal XML
As documented here:

StartDocument must always be the first event emitted. However, this code:
println!(
"{:?}",
xml::EventReader::from_str(";<?")
.next()
);
Prints: Ok(Characters(;))