The code below is part of a XML document:
<link rel="alternate" type="text/html" href="http://link.org/?p=13441" />
The code to parse tagName is this:
$tnl = $item->getElementsByTagName("link");
How can i get "href"?
thanks.
other parts of code is easily accessible by this:
$tnl = $item->getElementsByTagName("title");
$tnl = $tnl->item(0);
$title = $tnl->firstChild->data;
but these parts have no attributes and are easy to access.