go/src/encoding/xml
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
..
atom_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
example_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
marshal.go encoding/xml: fix namespaces in a>b tags 2015-03-03 14:03:37 +00:00
marshal_test.go encoding/xml: fix default namespace of tags 2015-03-09 09:10:30 +00:00
read.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
read_test.go encoding/xml: encoding name spaces correctly 2015-02-13 17:28:45 +00:00
typeinfo.go encoding/xml: fix default namespace of tags 2015-03-09 09:10:30 +00:00
xml.go encoding/xml: encoding name spaces correctly 2015-02-13 17:28:45 +00:00
xml_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00