(BTW I'm brand new to working with RSS/XML. Go easy on me

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
on mouseUp
get url "http://www.nu.nl/rss/Algemeen" // Put here your URL
put it into myXML
put revCreateXMLTree(myXML, false, true, false) into tTree
if tTree is not an integer then
answer "Error with revCreateXMLTree !"
exit mouseUp
end if
--
// we can directly access nodes
put revXMLNodeContents(tTree, "rss/channel/title") && "-" && revXMLNodeContents(tTree, "rss/channel/description") into tTitleAndDescr -- this will out put sites title and description
put tTitleAndDescr & " .... " into RSSText
--
put revXMLChildNames(tTree, "rss/channel/", return, "item", true) into recentPosts
repeat for each line aPost in recentPosts
put revXMLNodeContents(tTree, "rss/channel/" & aPost & "/title") into postTitle
put revXMLNodeContents(tTree, "rss/channel/" & aPost & "/link") into postLink
put postTitle & " .... " after RSSText
end repeat
--
answer RSSText
end mouseUp