antchfx / xmlquery

xmlquery is Golang XPath package for XML query.

Home Page:https://github.com/antchfx/xpath

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

<![CDATA[ ]]> missing when call OutputXML() function

zhengchun opened this issue · comments

#31

Missing <![CDATA[ ]]> tag when call OutputXML()

for example, before

<?xml version="1.0"?>
	<rss version="2.0" xmlns="http://www.example.com/" xmlns:dc="https://purl.org/dc/elements/1.1/">
	<dc:creator><![CDATA[Richard Lawler]]></dc:creator>
	</rss>

after OutputXML()

<?xml version="1.0"?><rss version="2.0" xmlns="http://www.example.com/" xmlns:dc="https://purl.org/dc/elements/1.1/">
<dc:creator>Richard Lawler</dc:creator>
</rss>