public static Element getFirstChildOrFail(Element e) throws ParserException {Element kid = getFirstChildElement(e);if (null == kid) {throw new ParserException(e.getTagName()+ " does not contain a child element");}return kid;}

public static XmlElement GetFirstChildOrFail(XmlElement e){XmlElement kid = GetFirstChildElement(e);if (null == kid){throw new ParserException(e.ToString()+ " does not contain a child element");}return kid;}
