diff -r a058e33c1666 -r 7c45fc3f524a structs_test.go --- a/structs_test.go Fri Dec 28 17:07:20 2012 -0700 +++ b/structs_test.go Fri Dec 28 17:56:13 2012 -0700 @@ -9,7 +9,9 @@ "encoding/xml" "fmt" "os" + "reflect" "runtime" + "strings" "testing" ) @@ -112,6 +114,30 @@ func TestMarshalEscaping(t *testing.T) { msg := &Message{Body: &Generic{XMLName: xml.Name{Local: "body"}, Chardata: `&