public static XmlElement FindElement(XmlElement e, String find)
{
for (XmlNode child = e.FirstChild; child != null; child = child
.NextSibling)
{
if (!(child is XmlElement))
{
continue;
}
XmlElement el = (XmlElement)child;
if (el.Name.Equals(find))
{
return el;
}
}
return null;
}