diff options
| author | Russ Cox <rsc@golang.org> | 2015-11-25 12:06:06 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2015-12-03 14:47:57 +0000 |
| commit | 92b02e313193de9de9aaa3525f1908d8a26e9a68 (patch) | |
| tree | f7747c984e6b8362b4348c6efcd0933f71124bdd /src/encoding/xml | |
| parent | bb6fb929d6e5c2e401f4e3ebe2b7505845970e4b (diff) | |
| download | go-92b02e313193de9de9aaa3525f1908d8a26e9a68.tar.xz | |
encoding/xml: document new chardata tag
Followup to CL 16047.
For #12963.
Change-Id: I596cd5109b25a4079b966427411860fde8b9b54a
Reviewed-on: https://go-review.googlesource.com/17232
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Diffstat (limited to 'src/encoding/xml')
| -rw-r--r-- | src/encoding/xml/marshal.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/encoding/xml/marshal.go b/src/encoding/xml/marshal.go index f908ccb1cb..8ebd693030 100644 --- a/src/encoding/xml/marshal.go +++ b/src/encoding/xml/marshal.go @@ -48,6 +48,8 @@ const ( // field name in the XML element. // - a field with tag ",chardata" is written as character data, // not as an XML element. +// - a field with tag ",cdata" is written as character data +// wrapped in one or more <![CDATA[ ... ]]> tags, not as an XML element. // - a field with tag ",innerxml" is written verbatim, not subject // to the usual marshalling procedure. // - a field with tag ",comment" is written as an XML comment, not |
