V Qc@sdZddlZddlZddlmZmZdZdZdejfdYZ e dkreZ 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. iN(t make_parserthandlers %s

%s

sU
Converted to HTML by rss2html.py.
t RSSHandlercBs2eZejdZdZdZdZRS(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|jfq?|dkr?|jjd|jq?n|jdkr?|dkr|j|_q?|dkr|j|_q?|dkr|j|_q?|dkr?|js|jjdt |_n|jjd|j|j|jfd|_d|_d |_q?n|d kr^|jjt ndS( NRttitlet descriptions

%s

Rtlinks