public class DtdChecker extends Object implements ErrorHandler
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
valid |
| Constructor and Description |
|---|
DtdChecker() |
| Modifier and Type | Method and Description |
|---|---|
void |
error(SAXParseException e)
Carry out the validation in case a parsing error occurs.
|
void |
fatalError(SAXParseException e)
Carries out the validation in case a fatal parsing error occur.
|
void |
warning(SAXParseException err)
Carry out the validation in case a warning is issued during the parsing.
|
public void fatalError(SAXParseException e) throws SAXException
fatalError in interface ErrorHandlere - Exception generated by the fatal parsing errorSAXParseException - if XML contains errorsSAXExceptionpublic void error(SAXParseException e) throws SAXParseException
error in interface ErrorHandlere - Exception generated by the parsing errorSAXParseException - Encapsulate an XML parse error or warningpublic void warning(SAXParseException err)
warning in interface ErrorHandlererr - Exception generated by the warningCopyright © 2020. All rights reserved.