]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/xml: document new chardata tag
authorRuss Cox <rsc@golang.org>
Wed, 25 Nov 2015 17:06:06 +0000 (12:06 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 3 Dec 2015 14:47:57 +0000 (14:47 +0000)
Followup to CL 16047.
For #12963.

Change-Id: I596cd5109b25a4079b966427411860fde8b9b54a
Reviewed-on: https://go-review.googlesource.com/17232
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/encoding/xml/marshal.go

index f908ccb1cb1dd5f30ce480173a98a6cdea67856f..8ebd693030eb78b939458fe0c6e608ad523878e9 100644 (file)
@@ -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