Code example for SAXParseException

Methods: getColumnNumber, getLineNumber, toString

0
 
        } catch (SAXParseException e) {
            outError[0] = String.format(
                    "XML verification failed for %1$s.\nLine %2$d:%3$d, Error: %4$s", 
                    url,
                    e.getLineNumber(),
                    e.getColumnNumber(),
                    e.toString());
 
        } catch (Exception e) {
            outError[0] = String.format(
                    "XML verification failed for %1$s.\nError: %2$s", 
                    url,
                    e.toString());
        } 
        return null; 
    } 
 
    /** 
     * Helper method that returns a validator for our XSD, or null if the current Java 
     * implementation can't process XSD schemas.