@Override
    public int getIndex(String uri, String local) {
        int length = getLength();

        for (int i = 0; i < length; i++) {
            if (!getURI(i).equals(uri)) {
                continue;
            }
            if (getLocalName(i).equals(local)) {
                return i;
            }
        }
        return -1;
    }
<b>SAX2 Attributes</b> method (don't invoke on parser);
src/nu/validator/gnu/xml/aelfred2/SAXDriver.java