1
0
mirror of https://github.com/golang/go synced 2024-10-04 20:31:22 -06:00
go/src/pkg/encoding/xml
Chris Jones a9121a19f0 encoding/xml: Marshal ",any" fields
Fixes #3559.

This makes Marshal handle fields marked ",any" instead of ignoring
them. That makes Marshal more symmetrical with Unmarshal, which seems
to have been a design goal.

Note some test cases were changed, because this patch changes
marshalling behavior. I think the previous behavior was buggy, but
there's still a backward-compatibility question to consider.

R=rsc
CC=golang-dev, n13m3y3r
https://golang.org/cl/6938068
2012-12-22 10:00:36 -05:00
..
atom_test.go time: clean up MarshalJSON, add RFC3339 method 2012-02-07 23:37:25 -05:00
example_test.go encoding/xml: fix anonymous field Unmarshal example 2012-02-24 14:45:32 -05:00
marshal_test.go encoding/xml: Marshal ",any" fields 2012-12-22 10:00:36 -05:00
marshal.go encoding/xml: Marshal ",any" fields 2012-12-22 10:00:36 -05:00
read_test.go time: clean up MarshalJSON, add RFC3339 method 2012-02-07 23:37:25 -05:00
read.go encoding/xml: Marshal ",any" fields 2012-12-22 10:00:36 -05:00
typeinfo.go encoding/xml: Marshal ",any" fields 2012-12-22 10:00:36 -05:00
xml_test.go encoding/xml: expand allowed entity names 2012-10-21 20:33:24 -04:00
xml.go encoding/xml: expand allowed entity names 2012-10-21 20:33:24 -04:00