Acme.Northwind.Install.XmlHelper.GetElement C# (CSharp) Method

GetElement() public static method

public static GetElement ( this parentElement, string tagName ) : XmlElement
parentElement this
tagName string
return System.Xml.XmlElement
		public static XmlElement GetElement(this XmlElement parentElement, string tagName)
		{
			XmlNodeList list = parentElement.GetElementsByTagName(tagName);
			if (list.Count > 0)
				return (XmlElement)list[0];
			else
				return null;
		}