XML list all nodes with a specific attribute?

I’m looking for a way to list all XMLNode that have a certain attribute, in my case, the “link” attribute.
So i do :

var list:XMLList = xml..@link;
for each(var i in list)	{

But this traces the value of the attribute and not the node containing the attribute…
How to trace the node??