Dental News

load($targetFeed); $fullList = $newDoc->getElementsByTagName("item"); $counter = 0; foreach($fullList as $thisItem) { if ($counter >= $numFeeds) { break; } $values = $thisItem->getElementsByTagName("*"); $title = ""; $link = ""; $date = ""; $content = ""; foreach($values as $node) { if($node->nodeName == "title") {$title = $node->nodeValue;} if($node->nodeName == "link") {$link = $node->nodeValue;} if($node->nodeName == "pubDate") {$date = $node->nodeValue;} if($node->nodeName == "content:encoded") {$content = $node->nodeValue;} } if ($title != "") { echo "

"; if ($link != "") { echo ""; } echo $title; if ($link != "") { echo ""; } echo "

"; } if ($date != "") { echo "

" . date('F jS Y',strtotime($date)) . "

"; } if ($content != "") { echo "

" . $content . "

"; } $counter++; } ?>
362 Hawkins Place, Boonton, NJ 07005 USA
Dennis R. Cabana DDS (973) 334-9350 sarah@alaskasmiles.com