public String print(SAXParseException ex){
  StringBuffer sb=new StringBuffer();
  sb.append("Exception: " + ex.getMessage());
  sb.append("failed at column : " + ex.getColumnNumber() + " on line "+ ex.getLineNumber());
  sb.append("entity:\n" + ex.getPublicId() + "\n"+ ex.getSystemId());
  return sb.toString();
}

public String print ( SAXParseException ex ) { StringBuffer sb = new StringBuffer ( ) ; sb . append ( "Exception: " + ex . getMessage ( ) ) ; sb . append ( "failed at column : " + ex . getColumnNumber ( ) + " on line " + ex . getLineNumber ( ) ) ; sb . append ( "entity:\n" + ex . getPublicId ( ) + "\n" + ex . getSystemId ( ) ) ; return sb . toString ( ) ; }
description of the method
