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