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

GetElement() public static method

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