public static Element getElement(Element el, String path, Map<String,String> namespaces){
        if(namespaces==null)
            namespaces = Objects.newHashMap();
        Element ret = null;
        try {
            String[] parts = ObjectPath.tokenizePath(path);
            Element o = el;
            for (int i = 0; i < parts.length; i++) {
                int j = getNumber(parts[i]);
                String name = getLocalName(parts[i]);
                String ns = getNamespaceURI(parts[i],namespaces);
                o = getChildElement(j,o,name,ns);
            }
            if (o != null){
                ret = o;
            }
        } catch (Throwable e) {
        }
        return ret;
    }
public static Element getElement ( Element el , String path , Map < String , String > namespaces ) { if ( namespaces == null ) namespaces = Objects . newHashMap ( ) ; Element ret = null ; try { String [ ] parts = ObjectPath . tokenizePath ( path ) ; Element o = el ; for ( int i = 0 ; i < parts . length ; i ++ ) { int j = getNumber ( parts [ i ] ) ; String name = getLocalName ( parts [ i ] ) ; String ns = getNamespaceURI ( parts [ i ] , namespaces ) ; o = getChildElement ( j , o , name , ns ) ; } if ( o != null ) { ret = o ; } } catch ( Throwable e ) { } return ret ; }
@param el
@param path
@param namespaces
@return