Parse selected RSS feeds


Hi guys,

Im totally useless at coding, just trying to learn from examples on the internet,

def url = ""
def rss = new XmlSlurper().parse(url)


Right now it is outputting all the stories, how do I select the first story or how to select one story?

(Jason Mok) #2{ it.toString().contains(“kangaroos”) }

try reading some groovy examples:


Hi Jason,

Thanks for your quick reply. But this function will just search by keyword, how do I select say only the second item.title?