// Set name of XML file
$file = "http://pongpol07.blogspot.com/atom.xml";
// Load specified XML file or report failure
$xml = simplexml_load_file($file) or die ("Unable to load XML file!");
// Load blog entries
$xml = $xml ->entry;
// Run loop for the number of available entries
foreach( $xml as $row )
{
// Load the entry publish time
$dtime = date("D jS M, Y", strtotime(strtok($row->published, 'T')));
// Load the link of each blog entry
$titlelink = $row->link[4][href];
// Load the text for Comment and comment counts
$comments = $row->link[1][href];
$comm = $row->link[1][title][0];
/* Display the contents (use your own imaginations here =).) */
$row->title
// Display publish time
Published on: $dtime
// Display blog entry content
$row->content
// Display number of comments
$comm
}
?>