private void Load(XmlNode[] aXmlNodes) { LoadXML(aXmlNodes.FirstOrDefault()); }
/// <summary> /// A method used to get the value of Element from an XmlElement array by specified name. /// </summary> /// <param name="elements">A parameter represents the source elements where the method finds the value.</param> /// <param name="name">A parameter represents the specified element name which is used to find element's value.</param> /// <returns>A return value represents the value of the matched element.</returns> protected string GetElementValue(XmlNode[] elements, string name) { return elements.FirstOrDefault<XmlNode>(e => e.LocalName.Equals(name, StringComparison.OrdinalIgnoreCase)).InnerText; }