Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kellyrob99/454269 to your computer and use it in GitHub Desktop.
Save kellyrob99/454269 to your computer and use it in GitHub Desktop.
println new XmlSlurper().parse('http://feeds.dzone.com/dzone/frontpage'.toURL().content)
.depthFirst()
.findAll {(it.name()=='title'&&it.parent().name()=='item')}[0..5]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment