xml-rs icon indicating copy to clipboard operation
xml-rs copied to clipboard

";<?" breaks StartDocument guarantees and is treated as normal XML

Open Kampfkarren opened this issue 6 years ago • 0 comments

As documented here:

image

StartDocument must always be the first event emitted. However, this code:

    println!(
        "{:?}",
        xml::EventReader::from_str(";<?")
            .next()
    );

Prints: Ok(Characters(;))

Kampfkarren avatar Jul 11 '19 15:07 Kampfkarren