When accessing the text() of a node we get the node's text plus the text of all it's children.
For example, the following code prints 'HelloWorld'
def xml = '<root><span>Hello<span>World</span></span></root>'
def root = new XmlSlurper().parseText(xml)
println root.span.text()
I just want to access the 'Hello' part.
The following ticket describes this situation
I'm just looking for a workaround technique for now.
Thanks