Re: [PHP] Simple XML in PHP

2009-03-24 Thread DredWerks
In this case "media" is a namespace, so is "live". The XML should have some lines above the ones you posted defining those namespaces. Try something like this: $simplexml = simplexml_load_string(...your entire xml...); $url0 = $simplexml->xpath( '//media:content' ); $url = $url0[0]->at

[PHP] Simple XML in PHP

2009-03-24 Thread Stephen Alistoun
HI all, How would a get this video from XML. /***Example i want to View***/ http://video-cdn.abcnews.com/090324_gma_leamy.flv"; lang="en" width="424" height="318" type="video/x-flv" /> /**/ /**XML CODE