Seminars

Student Seminars"); $xml=("https://www.dur.ac.uk/feeds/seminars/?section=1&series=112"); $xmlDoc = new DOMDocument(); $xmlDoc -> load($xml); // Get and output "" elements $x = $xmlDoc -> getElementsByTagName('item'); for ($i=0; $i<1; $i++) { $item_title=$x->item($i)->getElementsByTagName('title') ->item(0)->childNodes->item(0)->nodeValue; $item_speaker=$x->item($i)->getElementsByTagName('speaker') ->item(0)->childNodes->item(0)->nodeValue; $item_desc=$x->item($i)->getElementsByTagName('description') ->item(0)->childNodes->item(0)->nodeValue; $item_pubDate=$x->item($i)->getElementsByTagName('pubDate') ->item(0)->childNodes->item(0)->nodeValue; echo ("

" . $item_pubDate . "
" . $item_speaker . "
" . $item_title . "

"); echo ($item_desc . "


"); }*/ echo ("

Departmental Seminars

"); $xml=("https://www.dur.ac.uk/feeds/seminars/?section=1"); $xmlDoc = new DOMDocument(); $xmlDoc -> load($xml); // Get and output "" elements $x = $xmlDoc -> getElementsByTagName('item'); for ($i=0; $i<$x->length; $i++) { $item_title=$x->item($i)->getElementsByTagName('title') ->item(0)->childNodes->item(0)->nodeValue; $item_link=$x->item($i)->getElementsByTagName('link') ->item(0)->childNodes->item(0)->nodeValue; $item_desc=$x->item($i)->getElementsByTagName('description') ->item(0)->childNodes->item(0)->nodeValue; echo ("

" . $item_title . "

"); echo ($item_desc . "


"); } ?>

© Andrew Iskauskas.