Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encoding/xml: Decoder.DefaultSpace should set space for attributes too #9185

Closed
rogpeppe opened this issue Dec 1, 2014 · 1 comment
Closed

Comments

@rogpeppe
Copy link
Contributor

rogpeppe commented Dec 1, 2014

The docs say:

    // DefaultSpace sets the default name space used for unadorned tags,
    // as if the entire XML stream were wrapped in an element containing
    // the attribute xmlns="DefaultSpace".

This is not strictly true. If the entire XML stream were wrapped in an element
containing that attribute, attributes would have that namespace by default too. But they
do not.

http://play.golang.org/p/DG4HU40Pkm
@rogpeppe
Copy link
Contributor Author

rogpeppe commented Dec 1, 2014

Comment 1:

It has been pointed out to me that this is invalid, given the default attribute
namespacing defined in XML.

Status changed to Invalid.

@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants