Prefix handling is wrong
hamnis opened this issue · 2 comments
hamnis commented
When you have a namespace asigned to the root node default prefix like this.
<root xmlns="urn:foo:bar">
<child/>
</root>
This translates into the Anti-xml tree
Elem(Some(""), "root", Attributes(), Map(("" -> "urn:foo:bar"), Group(Elem(None, "child", Attributes(), Map(("" -> "urn:foo:bar"), Group.empty))
This is incorrect. The prefix in the child node should also be Some("")
trygvis commented
This works in my branch, I even added a test case for the .convert spec in trygvis@4e1a260