CSharp examples for System.Xml:XML Attribute
Get U Int Elem
using System.Xml.Linq; using System;//from ww w .j a va 2s.co m public class Main{ public static uint GetUIntElem(this XElement elem, string name) { uint.TryParse(elem.GetElemValue(name), out var v); return v; } public static string GetElemValue(this XElement elem, string elemName) { return elem.Element(elemName)?.Value; } }