I am trying to parse the blogspot feed using xpath, but it does not seem to work with anything I'm trying. I'm not sure if this is due to namespaces or what, but I was hoping someone could help me. Here is the code:
$xml = simplexml_load_file('http://feeds.feedburner.com/blogspot/MKuf'); $next = $xml->xpath("//link[@rel='next']"); print_r($next);
It just returns an empty array, and it should not be. I tried to make it just a link or just a record, and it still returns empty. The only one I can work with is *. Any help is appreciated.
php xpath simplexml
ngreenwood6
source share