public class SimpleErrorHandler extends XMLErrorHandler
Constructor and Description |
---|
SimpleErrorHandler(java.io.File xmlFile)
Used to construct the error handler
|
Modifier and Type | Method and Description |
---|---|
void |
error(org.xml.sax.SAXParseException e)
Used to print errors when they occur while validating the XML file
|
void |
fatalError(org.xml.sax.SAXParseException e)
Used to print fatal errors when they occur while validating the XML file
|
void |
warning(org.xml.sax.SAXParseException e)
Used to print warnings when they occur while validating the XML file
|
hasErrors
public SimpleErrorHandler(java.io.File xmlFile)
xmlFile
- The file that is been parsedpublic void warning(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
warning
in class XMLErrorHandler
e
- The exception that is been processedorg.xml.sax.SAXException
public void error(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
error
in class XMLErrorHandler
e
- The exception that is been processedorg.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
fatalError
in class XMLErrorHandler
e
- The exception that is been processedorg.xml.sax.SAXException