I am working on parsing an xml with an enclosure tag. How can I do this? I can easily take the link, guid, title, and pubDate tags and parse them into an NSString, but if I try to create a string from enclosure tag, it comes back null.
I just need the URL that is found in this part of the podcast episode:
<enclosure url="http://treymorgan.podbean.com/mf/feed/bf8mvq/Accommoditions.mp3" length="29865594" type="audio/mpeg"/>
If you are using NSXMLParser you can read the url attribute like this (providing that you have a property called podcastURL to store the parsed URL):