# only convert XML elements for which explicit # instructions exist, and drop everything else _mode = sparse # map top elements to feed prototype rdf\:RDF._prototype = feed channel._prototype = feed # map child elements to child objects of feed rdf\:RDF.item = feed._children rdf\:RDF.image = feed.images rdf\:RDF.textinput = feed.textinputs # define prototype for child elements item._prototype = item image._prototype = image textinput._prototype = textinput # map content of channel child elements to feed properties channel._attribute.rdf\:about = about channel.title._text = title channel.link._text = linkto channel.description._text = description channel.dc\:publisher._text = publisher channel.dc\:creator._text = creator channel.dc\:rights._text = rights channel.dc\:date._text = pubdate channel.dc\:language._text = language channel.sy\:updatePeriod._text = period channel.sy\:updateFrequency._text = frequency channel.sy\:updateBase._text = updatebase # map content of item child elements to item properties item._attribute.rdf\:about = about item.title._text = title item.link._text = linkto item.description._text = description item.dc\:publisher._text = publisher item.dc\:creator._text = creator item.dc\:rights._text = rights item.dc\:subject._text = subject item.dc\:date._text = pubdate # map content of image child element to image properties image._attribute.rdf\:about = about image.title._text = title image.url._text = url image.link._text = linkto # map content of textinput child element to textinput properties textinput._attribute.rdf\:about = about textinput.title._text = title textinput.description._text = description textinput.name._text = name textinput.link._text = linkto ##### additional properties for versions != 1.0 rss._prototype = feed rss._attribute.version = feed.version channel.item = feed._children channel.image = feed.images channel.lastBuildDate._text = pubdate channel.copyright._text = rights channel.managingEditor._text = creator channel.webMaster._text = publisher item.guid._text = linkto item.pubDate._text = pubdate