public static List<Element> children(Element ele, String regex) {
        final List<Element> list = new ArrayList<Element>(ele.getChildNodes().getLength());
        eachChildren(ele, regex, new Each<Element>() {
            public void invoke(int index, Element cld, int length) {
                list.add(cld);
            }
        });
        return list;
    }
public static List<Element> children(Element ele, String regex) {
        final List<Element> list = new ArrayList<Element>(ele.getChildNodes().getLength());
        eachChildren(ele, regex, new Each<Element>() {
            public void invoke(int index, Element cld, int length) {
                list.add(cld);
            }
        });
        return list;
    }
public static List < Element > children ( Element ele , String regex ) { final List < Element > list = new ArrayList < Element > ( ele . getChildNodes ( ) . getLength ( ) ) ; eachChildren ( ele , regex , new Each < Element > ( ) { public void invoke ( int index , Element cld , int length ) { list . add ( cld ) ; } } ) ; return list ; }
获取 XML 元素内名字符合一个正则表达式的元素

@param ele
XML 元素
@param regex
元素名称正则表达式
@return 一个子元素的列表
获取 XML 元素内名字符合一个正则表达式的元素