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: Unmarshal doesn't support element names with underscore #569

Closed
hoisie opened this issue Jan 28, 2010 · 2 comments
Closed

encoding/xml: Unmarshal doesn't support element names with underscore #569

hoisie opened this issue Jan 28, 2010 · 2 comments

Comments

@hoisie
Copy link
Contributor

@hoisie hoisie commented Jan 28, 2010

What steps will reproduce the problem?
1. Run this code: http://pastie.org/798082


What is the expected output? What do you see instead?

Expected: 
{"Id":"15264398","Name":"Michael
Hoisie","Screen_name":"hoisie"}

Actual: 
{"Id":"15264398","Name":"Michael
Hoisie","Screen_name":""}

What is your $GOOS?  $GOARCH?
linux/amd64

Which revision are you using?  (hg identify)
64a75ac14385+ tip

Please provide any additional information below.
According to http://www.w3schools.com/XML/xml_elements.asp, underscores are 
a best practice, so it should work
@hoisie

This comment has been minimized.

Copy link
Contributor Author

@hoisie hoisie commented Jan 28, 2010

Comment 1:

Patch out:
http://golang.org/cl/194121
@robpike

This comment has been minimized.

Copy link
Contributor

@robpike robpike commented Jan 28, 2010

Comment 2:

This issue was closed by revision f2539b1.

Status changed to Fixed.

Merged into issue #-.

@hoisie hoisie added the fixed label Jan 28, 2010
@mikioh mikioh changed the title XML.Unmarshal doesn't support element names with underscore encoding/xml: Unmarshal doesn't support element names with underscore Jan 9, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.