1
0
mirror of https://github.com/golang/go synced 2024-10-04 18:31:22 -06:00
go/src/pkg/encoding
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
..
ascii85 encoding/ascii85: fix panic caused by special case 2012-04-04 09:52:42 -04:00
asn1 encoding/asn1: don't convert UTCTime to UTC. 2012-10-29 11:16:05 -04:00
base32 encoding/base64: new example for NewEncoder with emphasis on Close 2012-12-11 11:49:02 -05:00
base64 encoding/base64: new example for NewEncoder with emphasis on Close 2012-12-11 11:49:02 -05:00
binary all: fix the the typos 2012-11-22 02:58:24 +08:00
csv all: fix typos 2012-12-19 03:04:09 +08:00
gob fmt, encoding/gob: fix misuse of Read 2012-12-18 01:26:48 +08:00
hex encoding/hex: vet the test prints 2012-02-10 09:44:56 +11:00
json encoding/json: cleanup leftover redundant variables. 2012-12-17 02:34:49 +01:00
pem encoding/pem: write Proc-Type header first. 2012-11-12 15:29:17 +00:00
xml encoding/xml: Marshal ",any" fields 2012-12-22 10:00:36 -05:00