TclRSS

TclRSSはRSS (Rich Site Summary, RdfSiteSummary) を読み書きするための拡張です

以下のような書き方ができるようになります。

# TclRSS sample
package require rss
 
set f [open rss.xml]
fconfigure $f -encoding utf-8
set rawrss [read $f]
close $f
 
set channel [rss::parse $rawrss]
puts "Feed:[$channel title]"
foreach item [$channel items] {
    puts [$item title]
}

JapaneseTclWiki
powered by TickleWiki