public static Element getFirstChildElement(Element element) {for (Node kid = element.getFirstChild(); kid != null; kid = kid.getNextSibling()) {if (kid.getNodeType() == Node.ELEMENT_NODE) {return (Element) kid;}}return null;}
public static XmlElement GetFirstChildElement(XmlElement element){for (XmlNode kid = element.FirstChild; kid != null; kid = kid.NextSibling){if (kid.NodeType == XmlNodeType.Element){return (XmlElement)kid;}}return null;}