public Attribute removeAttributeByLocalName ( CharSequence name ) { for ( Iterator < Attribute > it = event . attributes . iterator ( ) ; it . hasNext ( ) ; ) { Attribute attr = it . next ( ) ; if ( attr . localName . equals ( name ) ) { it . remove ( ) ; return attr ; } } return null ; }
Remove and return the attibute for the given local name if it exists .