code: public TagAttribute get(String ns, String localName)
      {
          if (ns != null && localName != null)
          {
              int idx = Arrays.binarySearch(_namespaces, ns);
              if (idx >= 0)
              {
                  for (TagAttribute attribute : _nsattrs.get(idx))
                  {
                      if (localName.equals(attribute.getLocalName()))
                      {
                          return attribute;
                      }
                  }
              }
          }
          
          return null;
      }
docs: Find a TagAttribute that matches the passed namespace and local name.
  
  @param ns
  namespace of the desired attribute
  @param localName
  local name of the attribute
  @return a TagAttribute found, otherwise null