8
Étant donné un fichier HTML avec la structure html-> body-> un groupe de divs, quelle est l'instruction groovy correcte pour trouver tous les divs avec une balise non vide attribut?Groovy: Syntaxe correcte pour XMLSlurper pour trouver des éléments avec un attribut donné
Ce qui suit ne fonctionne pas:
def nodes = html.body.div.findAll {[email protected] != null}
parce qu'il trouve tous les nœuds.