{
let doc = package.as_document();
let hello = doc.create_element("hello");
let world = doc.create_element("world");
doc.root().append_child(hello);
doc.root().append_child(world);
let stdout = &mut io::stdout();
format_document(&doc, stdout).ok().expect("unable to output XML");
stdout.flush();
}
expected output: <?xml version='1.0'?><hello/><world/>
actual output as of v. 0.2.6. : <?xml version='1.0'?><world/>
Is this a bug in the code or in my expectations?
expected output:
<?xml version='1.0'?><hello/><world/>actual output as of v. 0.2.6. :
<?xml version='1.0'?><world/>Is this a bug in the code or in my expectations?