I use go-xmldom for parsing xml docments.
doc, _ := xmldom.ParseXML(tmpStr)
root := doc.Root
someNode := root.getChild("someChild")
// someNode.Text is empty
// someNode.Xml() is not correct data without {{range}} operator
<root>
<someChild>
{{range $item := .list}}
<item>{{$item}}</item>
{{end}}
</someChild>
<root>
someNode - it is node with golang template and I need to get it as simple text. But someNode.Text = "" and someNode.Children - it is not correct data, because there are operators like {{range ...}}, {{if...}} and so on. How can I get some tag as simple text?