def parser = new org.cyberneko.html.parsers.SAXParser() parser.setFeature('http://xml.org/sax/features/namespaces', false) def page = new XmlParser(parser).parse('http://groovy.codehaus.org/') def data = page.depthFirst().A.'@href'.grep{ it != null && it.endsWith('.html') } data.each { println it }
Added latest neko and xerces libraries. Resolving is OK, but expected "FQN can be replaced with import" warning (+QuickFix) does not fire.