I posted something earlier today that I'm close to resolving myself. At this point in time I only have one issue with my code (after I found multiple errors earlier).
I'm extracting information from a WordPress XML File. I'm trying to pull an image location but although it's in the XML file, it's not being recognized as a XML file "tag" because it doesn't have a closing tag.
This is it in red. How can I access the "url" in this tag in an XML file, although it isn't being recognized as an actual XML tag??
<title>VH1′s Behind The Music: Usher</title>
<pubDate>Tue, 20 Jul 2010 14:28:02 +0000</pubDate>
<category><![CDATA[behind the music]]></category>
Usher’s “Behind The Music” aired last night on VH1, where he gets personal about his relationships, marriage, what it’s like being a father, the concepts behind his albums and his brief reunion with his dad. The episode takes you from how he got discovered at talent shows, to recording his debut with Diddy, the liberation [...]]]></description>
<enclosure url='http://www.volumestat.com/wp-content/uploads/2010/07/usherraymond-600x344-150x150.jpg' length ='6481' type='image/jpg' />
Meaning that I can't use
foreach ($item -> enclosure as $img_tag)