private static Object[] toArray(Element parent) throws Exception {
        Object[] array = null;
        log.debug(String.format("method start Element[parent:%s]", parent));
        if (parent != null) {
            List<?> table = parent.elements();
            array = new Object[table.size()];
            Object value;
            Element child;
            for (int i = 0, size = table.size(); i < size; i++) {
                child = (Element)table.get(i);
                if (child.elements().size() > 0) { //包含嵌套复杂对象
                    if (child.elements(Constant.XML_LIST_FLAG).size() == 0) { //map
                        value = toMap(child, null);
                    } else { //array
                        value = toArray(child);
                    }
                } else {
                    value = child.getTextTrim();
                }
                array[i] = value;
            }
        }
        log.debug(String.format("method stop return:Object[][%s]", array));
        return array;
    }