I’m trying to load YouTube playlist feed data and I’m having some trouble with the ATOM version, which is the YT default. I’m having no problems with the RSS version, but the RSS takes a few minutes longer to update when making changes to a playlist. I can load both and toXMLString(); both feeds but I’m getting an error when I try and parse the ATOM feed.
So if the ATOM feed looks like this:
<feed ... >
<entry>...</entry>
</feed>
Shouldn’t I be able to get the following trace to work after the completed load where playlistXML is my new XML for the feed:
trace(playlistXML.entry[0].title);
I’m getting a “TypeError: Error #1010: A term is undefined and has no properties.” when I try and output that title data.
And the RSS is like this:
<rss ... >
<channel>
<item>...</item>
</channel>
</rss>
This works fine:
trace(playlistXML.channel.item[0].title);
Do you have any advice or insight for working with ATOM vs RSS feeds?
Thanks,
Dave