This commit is contained in:
lumi 2018-01-01 14:28:17 +01:00
parent cdb2cb8d86
commit 118bbb5462

View file

@ -917,3 +917,14 @@ fn test_from_reader_with_prefix() {
assert_eq!(elem.unwrap(), elem2); assert_eq!(elem.unwrap(), elem2);
} }
#[test]
fn parses_spectest_xml() { // From: https://gitlab.com/lumi/minidom-rs/issues/8
let xml = r#"
<rng:grammar xmlns:rng="http://relaxng.org/ns/structure/1.0">
<rng:name xmlns:rng="http://relaxng.org/ns/structure/1.0"></rng:name>
</rng:grammar>
"#;
let mut reader = EventReader::from_str(xml);
let _ = Element::from_reader(&mut reader);
}