Code example for SAXParseException

Methods: getColumnNumber, getLineNumber, getMessage

0
          getHandler(handler, errorHandler, entityResolver));
    }catch(SAXParseException spe){
      ArrayList<Error> errors = new ArrayList<Error>();
      errors.add(
        new Error(
            spe.getMessage(),
            filename,
            spe.getLineNumber(),
            spe.getColumnNumber(),
            false) 
        ); 
      return errors;
    } 
 
    return errorHandler.getErrors();
  } 
 
  /** 
   * Validate the supplied xml file against the specified xsd. 
   * 
   * @param project The project name.