-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
If you write a simple serialization test like:
#[test]
fn mytest() {
let s = "<doc/>";
let d = xml::parse(RNode::new_document(), s, None).unwrap();
assert_eq!(d.to_xml().to_string(), "<doc/>")
}
You get:
assertion
left == right
failed
left: "<doc></doc>"
right: "<doc/>"
Although this makes no real difference to how other systems will parse the document, it isn't what most people would expect to return. It would be good if this could be adjusted to check for children before serializing.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers