private boolean isName(EventNode node,String name){
  String local=node.getName();
  if (local == null) {
    return false;
  }
  return local.equals(name);
}

private boolean isName ( EventNode node , String name ) { String local = node . getName ( ) ; if ( local == null ) { return false ; } return local . equals ( name ) ; }
this is used to determine the name of the node specified . the name of the node is determined to be the name of the element if that element is converts to a valid stax start element .
