code: public Attribute getAttributeWithNamespaceURI(CharSequence uri, CharSequence name) {
  		for (Attribute attr : event.attributes)
  			if (attr.localName.equals(name) && getNamespaceURI(attr.namespacePrefix).equals(uri))
  				return attr;
  		return null;
  	}
docs: Shortcut to get the attribute for the given namespace URI and local name.