a much simpler way:
foreach (XmlNode n1 in list)
{
string str = n1.Attributes["name"].Value;
}
this string
str will have the value of the attribute
name of each node, likewise just give the name of the attribute u want and we can access the value.so simple :)