XML help

Gerry Orkin gerry.orkin at gmail.com
Wed Dec 19 00:55:19 EST 2012


Hi all

I have no XML experience and I need help with extracting data from a tree. Hope someone can point me in the right direction - I've looked at the XML lesson on the RunRev site but I can't transfer what I've learnt there to my situation for some reason (well, the reason is I'm new to this and confused :)).

Here's my XML:


<item>
			<title>The XYZ Podcast: Episode #291</title>
			<pubDate>Thu, 06 Dec 2012 15:30:57 +0000</pubDate>
			<guid isPermaLink="false"><![CDATA[8282b5a5e0aaf2f2c1b8407ca813deb3]]></guid>
			<link><![CDATA[http://XYZpodcast.com/the-XYZ-podcast-episode-291]]></link>
			<media:thumbnail url="http://assets.libsyn.com/item/2148560" />
			<description>Some show notes go here</description>
			<enclosure length="57854477" type="audio/mpeg" url="http://traffic.libsyn.com/XYZpodcast/XYZPodcast291-Dec06-12.mp3" />
</item>
<item>
			<title>The XYZ Podcast: Episode #292</title>
			<pubDate>Thu, 06 Dec 2012 15:30:57 +0000</pubDate>
			<guid isPermaLink="false"><![CDATA[8282b5a5e0aaf2f2c1b8407ca813deb3]]></guid>
			<link><![CDATA[http://XYZpodcast.com/the-XYZ-podcast-episode-292]]></link>
			<media:thumbnail url="http://assets.libsyn.com/item/2148560" />
			<description>Some show notes go here</description>
			<enclosure length="43852797" type="audio/mpeg" url="http://traffic.libsyn.com/XYZpodcast/XYZPodcast291-Dec20-12.mp3" />
</item>

(That goes on for 322 items!)

There is other, non-repeating stuff at the top of the feed that I've not pasted here, and I can get the contents of those nodes with no problem at all. But how do I then extract all the sub-nodes under the <item> node into a table?

Thanks in advance!

Gerry



More information about the use-livecode mailing list