ó ¿œ^c@s™dZddlZddlZddlmZmZdZdZdejfd„ƒYZ e dkr•eƒZ e j e ƒƒe j ejd ƒndS( sx A demo that reads in an RSS XML document and emits an HTML file containing a list of the individual items in the feed. iÿÿÿÿN(t make_parserthandlersà %s

%s

sU
Converted to HTML by rss2html.py.
t RSSHandlercBs2eZejd„Zd„Zd„Zd„ZRS(cCsbtjj|ƒtjdƒ|ƒ|_d|_d|_t |_ d|_ d|_ d|_ dS(Nsutf-8t(RtContentHandlert__init__tcodecst getwritert_outt_texttNonet_parenttFalset _list_startedt_titlet_linkt_descr(tselftout((s)/usr/lib64/python2.7/Demo/xml/rss2html.pyR)s     cCs=|dks$|dks$|dkr0||_nd|_dS(NtchanneltimagetitemR(R R (Rtnametattrs((s)/usr/lib64/python2.7/Demo/xml/rss2html.pyt startElement6s$ cCsb|jdkrg|dkr>|jjt|j|jfƒq?|dkr?|jjd|jƒq?nØ|jdkr?|dkr‘|j|_q?|dkr¬|j|_q?|dkrÇ|j|_q?|dkr?|jsø|jjdƒt |_n|jjd|j|j|jfƒd|_d|_d |_q?n|d kr^|jjt ƒndS( NRttitlet descriptions

%s

Rtlinks