HuyPV
Wednesday, April 15, 2009
$xml = file_get_contents("http://codjng.blogspot.com/source-code.rss");
$doc = new DOMDocument();
$doc->loadXML($xml);
$items = $doc->getElementsByTagName('item');
$numberItems = $items->length; (//wrong: count($items);)
for ($i = 0; $i < $numberItems; $i++) {
$strItem = $items->item($i)->nodeValue;
// data processing...
}
Title:
Retrieve data from RSS
Description:
$xml = file_get_contents("http://codjng.blogspot.com/source-code.rss"); $doc = new DOMDocument(); $doc->loadXML($xml); $items =...
...
Rating:
4