Skip to content

Commit 92b02e3

Browse files
committed
encoding/xml: document new chardata tag
Followup to CL 16047. For golang#12963. Change-Id: I596cd5109b25a4079b966427411860fde8b9b54a Reviewed-on: https://go-review.googlesource.com/17232 Reviewed-by: David Crawshaw <crawshaw@golang.org>
1 parent bb6fb92 commit 92b02e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/encoding/xml/marshal.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ const (
4848
// field name in the XML element.
4949
// - a field with tag ",chardata" is written as character data,
5050
// not as an XML element.
51+
// - a field with tag ",cdata" is written as character data
52+
// wrapped in one or more <![CDATA[ ... ]]> tags, not as an XML element.
5153
// - a field with tag ",innerxml" is written verbatim, not subject
5254
// to the usual marshalling procedure.
5355
// - a field with tag ",comment" is written as an XML comment, not

0 commit comments

Comments
 (0)