code: public String getXmlStreamInfo()
  	{
  		StringBuilder sb = new StringBuilder();
  
  		int event = r.getEventType();
  		if (event == START_ELEMENT || event == END_ELEMENT || event == ENTITY_REFERENCE)
  		{
  			sb.append(r.getLocalName());
  		}
  
  		if (r.getLocation() != null)
  		{
  			sb.append(" line ");
  			sb.append(r.getLocation().getLineNumber());
  			sb.append(" column ");
  			sb.append(r.getLocation().getColumnNumber());
  		}
  
  		return sb.toString();
  	}
docs: This may be required for external applications to access the specific information (e.g.,
  location) when reporting XML exceptions.
  @return current XML stream state summary