What is an alternative to this XPath //div[@id=\'foo\'] in GPath? In general, where I can find this documentation?
//div[@id=\'foo\']
Here is the corresponding snippet:
def node = new XmlSlurper().parseText(...) def foo = node.depthFirst().findAll { it.name() == 'div' && it.@id == 'foo'}
A few other links you may want to read: