<link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7538664413577532945/posts/default/6420470017556836335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538664413577532945/posts/default/6420470017556836335'/><link rel='alternate' type='text/html' href='http://tipsorangsukses.blogspot.com/2013/05/tips-membeli-emas-batangan.html' title='Tips Membeli Emas Batangan'/>
i want to get link rel alternate href only, so the result when echo is http://tipsorangsukses.blogspot.com/2013/05/tips-membeli-emas-batangan.html
i wrote like this but still wrong
$feed = file_get_contents("http://tipsorangsukses.blogspot.com/atom.xml");
$xml = new SimpleXmlElement($feed);
echo "<ul>";
foreach($xml->entry as $entry) {
$linku = mysql_real_escape_string("$entry->link");
echo $linku;
}
echo "</ul>";
please help me, daniweb friends :)