if (child.getNodeName().equals(elemName)) { return (Element)child; }
return (Element)child;
    public static Element getLastChildElement(Node parent, String elemName) {        // search for node        Node child = parent.getLastChild();        while (child != null) {            if (child.getNodeType() == Node.ELEMENT_NODE) {                if (child.getNodeName().equals(elemName)) {                    return (Element)child;                }            }            child = child.getPreviousSibling();        }        // not found        return null;    } // getLastChildElement(Node,String):Element