aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/xml/read.go
diff options
context:
space:
mode:
authorCharles Weill <weill@google.com>2015-10-23 16:08:20 -0400
committerRuss Cox <rsc@golang.org>2015-11-25 17:04:43 +0000
commit3f6b91b1136e25e75da71b727e536ba4f4066fd5 (patch)
treeec367c5f323c512f62aee1c51c6f291511b64d36 /src/encoding/xml/read.go
parenta48de745b28a39d58dcd916f410704f0f7d75d7c (diff)
downloadgo-3f6b91b1136e25e75da71b727e536ba4f4066fd5.tar.xz
encoding/xml: Add CDATA-wrapper output support to xml.Marshal.
Fixes #12963 Change-Id: Icc50dfb6130fe1e189d45f923c2f7408d3cf9401 Reviewed-on: https://go-review.googlesource.com/16047 Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/encoding/xml/read.go')
-rw-r--r--src/encoding/xml/read.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encoding/xml/read.go b/src/encoding/xml/read.go
index 75b9f2ba1b..77b4c7b495 100644
--- a/src/encoding/xml/read.go
+++ b/src/encoding/xml/read.go
@@ -431,7 +431,7 @@ func (p *Decoder) unmarshal(val reflect.Value, start *StartElement) error {
}
}
- case fCharData:
+ case fCDATA, fCharData:
if !saveData.IsValid() {
saveData = finfo.value(sv)
}