rendered paste body<?
$url = 'http://news.nana10.co.il/Common/GeneralModules/Inews/InewsTickerXML.asp?TypeId=3';
if ( ($xml = file_get_contents($url)) === false )
die("could not fetch xml\n");
$doc = new DOMDocument();
if (! $doc->loadXML($xml))
die("could not load xml\n");
$xpath = new DOMXPath($doc);
$items = array();
foreach ($xpath->query('/tikers/ticker', $doc) as $node) {
$item = array();
foreach (array('link', 'win', 'subject', 'date') as $attr)
$item[$attr] = $node->getAttribute($attr);
$items[] = $item;
}
var_dump($items);
?>