diff -r d19b556d4ea6 -r fbd51fa6b7ea structs_test.go --- a/structs_test.go Mon Jan 23 21:58:53 2012 -0700 +++ b/structs_test.go Sun Apr 15 11:20:55 2012 -0600 @@ -44,7 +44,7 @@ func assertMarshal(t *testing.T, expected string, marshal interface{}) { buf := bytes.NewBuffer(nil) - xml.Marshal(buf, marshal) + xml.NewEncoder(buf).Encode(marshal) observed := string(buf.Bytes()) assertEquals(t, expected, observed) }