def doc = """
<html>
<body>
<div tags="1">Test1</div>
<div taGs="">Test3</div>
<div TAGS="4">Test4</div>
</body>
</html>
"""
def html = new XmlSlurper().parseText(doc)
html.body.div.findAll { [email protected]()}.each { div ->
println div.text()
}
This code print only Test1! How ignore case for attribute @tags?