[WJR] - There was a discussion on the [TclHttpd] mailing list about processing [RSS]. Here's a variant I came up with using [tDOM] and [The Tcler's Wiki] RSS feed (it should work with any RSS feed): [Doc_Dynamic] [ package require http package require tdom html::set token [http::geturl http://mini.net/tcl/rss.xml] html::set rss_xml [http::data $token] html::set doc [dom parse $rss_xml] html::set root [$doc documentElement] html::set stories [$root selectNodes /rss/channel/item] ] [html::head {RSS Example}] [html::bodyTag] [html::h1 {RSS Example}]
[html::foreach story $stories {
[[$story selectNodes title/text()] nodeValue] ([[$story selectNodes pubDate/text()] nodeValue])
[[$story selectNodes description/text()] nodeValue]
}]
[html::end] [tDOM] and [TclHttpd] makes this pretty simple! ---- [DG] -- That little starter script got me going. I was messing with [TclXML] at first, but [tDOM] is a whole lot easier to use. See it in action [http://www.pobox.com/~davygrvy/news.tml] ---- [Category TclHttpd]