1
0
mirror of https://github.com/golang/go synced 2024-10-03 06:21:21 -06:00
go/src/encoding
Roger Peppe 9f9d66d3b6 encoding/xml: fix default namespace of tags
The struct XMLName sets the default namespace, but
that's not good enough for nested tags, because an
earlier tag can set the implicit parents of a subsequent
tag. This change makes sure that we always explicitly set the
namespace on a tag when possible.

See https://go-review.googlesource.com/#/c/5910/4/src/encoding/xml/marshal_test.go@628
for discussion.

Change-Id: If1afc536471c0be83e5dd80381b598476ea3f44d
Reviewed-on: https://go-review.googlesource.com/6927
Reviewed-by: Nigel Tao <nigeltao@golang.org>
Reviewed-by: Dave Cheney <dave@cheney.net>
2015-03-09 09:10:30 +00:00
..
ascii85 build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
asn1 encoding/asn1: fix explicitly tagged Times. 2014-10-09 17:37:40 -07:00
base32 build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
base64 encoding/base64: add unpadded encodings, and test all encodings. 2014-12-22 16:05:23 +00:00
binary encoding/binary: check for unsigned integers in intDataSize. 2014-12-22 20:14:59 +00:00
csv encoding/csv: for Postgres, unquote empty strings, quote \. 2014-10-23 23:44:47 -04:00
gob encoding/gob: address go vet report 2014-12-28 19:30:31 +00:00
hex build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
json encoding/json: Fixed the comment specifying Marshal behavior for maps. 2015-02-18 23:57:36 +00:00
pem encoding/pem: eliminate allocations for newlines during encoding 2014-12-21 22:06:09 +00:00
xml encoding/xml: fix default namespace of tags 2015-03-09 09:10:30 +00:00
encoding.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00