Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
encoding/xml: Error parsing XML with CDATA #128
What steps will reproduce the problem? Parse an XML file with a <![CDATA[ section. What is the expected output? What do you see instead? Expect successful parse. Get: XML syntax error: invalid <![ sequence What is your $GOOS? $GOARCH? $GOOS = darwin $GOOARCH = 386 Which revision are you sync'ed to? (hg log -l 1) changeset: 4018:bbc290c53f85 tag: tip Please provide any additional information below. The attached .go file has the following XML. It should successfully parse by using xml.Unmarshal and the types defined but it gets a syntax error. <?xml version="1.0" encoding="utf-8"?> <rss> <channel> <item> <title>Go</title> <link>http://golang.org/<;/link> <description><![CDATA[ The Go language home page ]]></description> </item> <item> <title>Test Page</title> <link>http://somesite/<;/link> <description><![CDATA[ CONTENTS ]]></description> </item> </channel> </rss>
This issue was closed.