$root = $doc->documentElement;
$children = $root->childNodes;
foreach ($children as $elem) {
echo trim($elem->nodeValue)."\n";}

یا اینکه از getElementsByTagName استفاده کنی ...........