code: protected boolean isStartTagEvent(XMLEvent event, QName tagName) {
          return event.isStartElement()
                  && event.asStartElement().getName().equals(tagName);
      }
docs: Test an event to see whether it is an start tag with the expected name.