code: static final boolean nameIs(XMLStreamReader rdr, Element elt) {
      return rdr.getLocalName().equalsIgnoreCase(elt.name());
    }
docs: Convenience method to test if the current local name is the same as an expected element.
  @param rdr The XMLStreamReader to get the current state from.
  @param elt The element to test against.
  @return <code>true</code> iff the current local name is the same as the element name.