WTFSTFU?\!? Element elem = (Element) ((Element) elemObj).clone(); FTW\!\!\!