3
Vote

Custom item Element not acessible

description

Some RSS Feeds have some custom item elements other than fixed one (Title,Description, etc.)...Is there any feature in this toolkit o access those properties.
Example: Ths RSS( http://media.csis.org/itunesu/csisvideo.xml) has xml items like <itunes:author>,<itunes:subtitle> which are not accessible by RSS toolkit.
item>
    <title>February 1-15 Highlights</title>
    <itunes:author>Center for Strategic and International Studies</itunes:author>
    <itunes:subtitle></itunes:subtitle>
    <itunes:summary>This highlights video covers four major events at CSIS: supporting democracy abroad with David Price and David Dreier, a press briefing on Secretary Clinton's trip to Asia, Afghanistan, and a discussion of the recent stimulus package.</itunes:summary>
    <enclosure url="http://media.csis.org/highlights/090220_february_highlights.mov" length="13054005" type="video/quicktime" />
    <guid>http://media.csis.org/highlights/090220_february_highlights.mov</guid>
    <pubDate>Fri, 20 Feb 2009 9:00:00 GMT</pubDate>
    <itunes:duration>00:01:59</itunes:duration>
    <itunes:keywords>CSIS, Democracy, Congress, Asia, Secretary Clinton, Afghanistan, Stimulus</itunes:keywords>
    <itunes:explicit>no</itunes:explicit>
    <category>Global Challenges</category>
</item>

comments

PHeonix25 wrote Sep 18, 2009 at 12:39 AM

You'll need to specifically import the itunes namespace from the initial RSS declaration in order to read/write the properties with custom namespaces.
This isn't supported at the moment in the Toolkit.
I have submitted a patch to change the output to support these namespaces (i.e.: you can write nodes like "itunes:duration" by adding the itunes namespacing) but someone else will have to complete the same type of task for reading them.
My solution for the output (which wouldn't take too much work to change for input) is here http://aspnetrsstoolkit.codeplex.com/WorkItem/View.aspx?WorkItemId=22252