CSharp examples for System.Xml:XML Attribute
Get U Long Elem
using System.Xml.Linq; using System;/* ww w .j a v a 2 s . com*/ public class Main{ public static ulong GetULongElem(this XElement elem, string name) { ulong.TryParse(elem.GetElemValue(name), out var v); return v; } public static string GetElemValue(this XElement elem, string elemName) { return elem.Element(elemName)?.Value; } }