fromString($response); $rootEl =& $parsedDoc->getRoot(); $title = $rootEl->getElementByPath('channel/title'); echo "

" . $title->getValue() . "

"; $returnedElement =& $rootEl->getElement('channel'); $elChildren =& $returnedElement->getAllChildren(); for($i = 0; $i < $returnedElement->numChildren(); $i++) { if ($elChildren[$i]->name() == 'item') { $link = $elChildren[$i]->getElementByPath('link'); $title = $elChildren[$i]->getElementByPath('title'); $desc = $elChildren[$i]->getElementByPath('description'); echo "getValue() . "\">" . html_entity_decode($title->getValue()) . "
"; echo "

" . html_entity_decode($desc->getValue()) . "



"; } } ?>