Skip to content
This repository has been archived by the owner on May 15, 2019. It is now read-only.

Prefix handling is wrong #79

Open
hamnis opened this issue Jan 6, 2012 · 2 comments
Open

Prefix handling is wrong #79

hamnis opened this issue Jan 6, 2012 · 2 comments

Comments

@hamnis
Copy link
Contributor

hamnis commented Jan 6, 2012

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
Copy link

trygvis commented Jan 6, 2012

This works in my branch, I even added a test case for the .convert spec in trygvis@4e1a260

@djspiewak
Copy link
Owner

This is definitely an annoying parse issue, which we should fix. I'm not yet sure about the other changes though. Will comment on issue #78.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants