fn main() {
let contents = r#"<!DOCTYPE greeting SYSTEM "hello.dtd"> <?xml-stylesheet?>"#;
for token in xmlparser::Tokenizer::from(contents) {
println!("{:?}", token);
}
let contents = r#"<?xml-stylesheet?> <!DOCTYPE greeting SYSTEM "hello.dtd">"#;
for token in xmlparser::Tokenizer::from(contents) {
println!("{:?}", token);
}
}
Hi, the following
outputs
but should probably be able to parse as I found this in the wild. This is probably related to https://github.com/RazrFalcon/xmlparser/commit/94638df5244b5ebfbe0ba76961399a80c4ddf4d1 and https://github.com/RazrFalcon/xmlparser/issues/11
A fix would be really appreciated.