CSharp examples for System.Xml:XML Element
Attribute Value from XElement
using System.Xml.Linq; public class Main{ public static string AttributeValue(this XElement element, string attribute) {//from w w w.j a va 2s .co m return element.Attribute(attribute).Value; } }