getElementsByTagName("rdf:RDF"); //$description = $dom->getElementsByTagName("description"); // $arr['id'] = $id; // $arr['title'] = $title->item(0)->textContent; //echo $xml->asXML(); foreach($xml->channel as $pChild) { // echo "

" . $pChild->title . "

\n"; //echo "

"; //echo $pChild->description . "
"; //printf('Visit us at %s
' . "\n", $pChild->link, $pChild->link); // echo "

\n"; foreach ($xml->item as $pItem) { unset($link); unset($title); unset($description); foreach ($pItem->children() as $pChild) { switch ($pChild->getName()) { case 'title': //printf('
' . $pChild . '
'); $title = $pChild; break; case 'link': $link = $pChild; break; case 'description': $description = $pChild; break; default: //echo nl2br($pChild) . "
"; break; } if (isset($link) && isset($title) && isset($description)) { printf('

%s

',$link,$title); printf('
%s
',$link,$description); unset($link); unset($title); } } } } // echo $xml->asXML(); /*print($arr); echo "
"; $header = $arr[0]; echo "TEST" . $header; echo "
";*/ } // $json= '('.json_encode($arr).');'; //must wrap in arens and end with semicolon //print_r($_GET['callback'].$json); //callback is prepended for json-p } // show_rss('http://wiki.notfound.dk/dokuwiki/feed.php'); ?> Anasayfa - Elinchrom Işık Sistemleri Türkiye Distribitörü

Anasayfa