views:

54

answers:

1

http://pastebin.com/nN8G78AH

I'm using simplexml() function to parse through RSS feed, while i can access $var->title to < title> how do I access < dcterms:issued>

+2  A: 

Are you using SimpleXML?

A solution for you seems to exist right here.

EDIT

Answer copied here for posterity's sake

Access the children by their XML namespace.

$dcChildren = $node->children( 'http://purl.org/dc/elements/1.1/' );

$title = $dcChildren->title;
Peter Bailey
`$node->children('dc',true);` would be somewhat more readable for those who don't know the standard dc: namespace.
Wrikken
@Wrikken - indeed.
Peter Bailey