Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
encoding/xml: exported non-struct anonymous fields are not marshaled #3803
latest version of Go: 1.0.2 What steps will reproduce the problem? http://play.golang.org/p/sYqNwtYeh5 What is the expected output? <A><B>0<B/></A> What do you see instead? <A></A> Which compiler are you using (5g, 6g, 8g, gccgo)? 6g Which operating system are you using? Linux Which version are you using? (run 'go version') weekly.2012-03-27 +100ddb84c85d Please provide any additional information below. The documentation for the xml package says that all exported fields are marshaled and does not state any exception for embedded fields that are not structs.