Parsing iTunes RSS Feed

Ken Ray kray at sonsothunder.com
Sun Sep 17 19:10:15 EDT 2006


On 9/17/06 6:27 AM, "Sivakatirswami" <katir at hindu.org> wrote:

> I'm getting an error here:
> 
>   put revXMLNodeContents(tCurrTree,"/rss/channel/itunes:summary/") into
> tSummary
> 
> where the source is
> 
> <itunes:summary>Summary Text here.... </itunes:summary>
> 
> As an XML infant and  RSS baby, I need help...
> how does one parse  nodes like
> <itunes:summary>
> <itunes:email>
> 
> etc. That: node{colon]parameter... is news to me.

It indicates a "domain" for the tag.

> Also  stand  alone tags return empty:
> 
> put revXMLNodeContents(tCurrTree,"/rss/channel/item/enclosure/") into
> tURL
> 
> if /enclosure is:
> 
> <enclosure
> url="http://www.himalayanacademy.com/audio/inspiredtalks/gurudeva/taka/1998/gr
> -taka_1998-11-05.mp3"
> 
> length="5048830" type="audio/x-mp3" />
> 
> Rev doesn't see  the [space /] as a valid end  tag and  simply does not
> parse the data....

<shamelessPlug>
You could always use my STS XML Library for this - not only does it support
domains, but also has a "plugin" library specifically designed to work with
RSS feeds so long as they are in non-RDF format. (Although after checking
based on this email, I found a couple of bugs I fixed and a new version has
beeen uploaded... <grin>). Oh, and I checked the enclosure above, and it
parses just fine...
</shamelessPlug>
  
  http://www.sonsothunder.com/products/xmllib/xmllib.htm

And info on the RSS Plugin:

  http://www.sonsothunder.com/products/xmllib/xmllib_rssplugin.htm


HTH,

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list