]> Cypherpunks repositories - gostls13.git/commit
encoding/xml: encoding name spaces correctly
authorRoger Peppe <rogpeppe@gmail.com>
Sat, 10 Jan 2015 14:00:21 +0000 (14:00 +0000)
committerroger peppe <rogpeppe@gmail.com>
Fri, 13 Feb 2015 17:28:45 +0000 (17:28 +0000)
commit3be158d6ab73090a74df6bc3b7cfa062d896483a
tree102d0ed12be30c3bbd83f908e32d746d26ce0b46
parentf59f9b85276b6f80b6e55ea747a5df64bb83ecce
encoding/xml: encoding name spaces correctly

The current XML printer does not understand the xmlns
attribute. This change changes it so that it interprets the
xmlns attributes in the tokens being printed, and uses
appropriate prefixes.

Fixes #7535.

Change-Id: I20fae291d20602d37deb41ed42fab4c9a50ec85d
Reviewed-on: https://go-review.googlesource.com/2660
Reviewed-by: Nigel Tao <nigeltao@golang.org>
src/encoding/xml/marshal.go
src/encoding/xml/marshal_test.go
src/encoding/xml/read_test.go
src/encoding/xml/xml.go