]> Cypherpunks repositories - gostls13.git/commit
encoding/xml: fix to allow xml declaration with EncodeToken
authorJason Del Ponte <delpontej@gmail.com>
Tue, 13 May 2014 03:35:56 +0000 (23:35 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 13 May 2014 03:35:56 +0000 (23:35 -0400)
commit92440fb5bd43912e363f32409bba5d6880356d60
tree3593e1f5bd6dfa448f35eec3c7668d79d34fabcb
parentf16ee08ba8782b2e2dbcf335f9837699b0f50cbb
encoding/xml: fix to allow xml declaration with EncodeToken

This changes allows the first token encoded to be a xml declaration. A ProcInst with target of xml. Any other ProcInst after that with a target of xml will fail

Fixes #7380.

LGTM=rsc
R=golang-codereviews, rsc
CC=golang-codereviews
https://golang.org/cl/72410043
src/pkg/encoding/xml/marshal.go
src/pkg/encoding/xml/marshal_test.go