Monthly Archives: April 2011

XML parsing and Namespaces

Posted by & filed under PHP.

Here’s a simpleXML script I used to parse a feed. There are MP3 links that are under the namespace xmlns:media=””. The links are in the feed like this: To get at the url attribute you first have to access the ‘media’ namespace by using children(‘media’,true). This tells the parser to find children of the namespace… Read more »