public class XMLValidator extends XMLEntityResolverDefaultHandler
Constructor and Description |
---|
XMLValidator(InputSource validator,
String strSchema) |
Modifier and Type | Method and Description |
---|---|
void |
error(SAXParseException spe) |
void |
fatalError(SAXParseException spe) |
InputSource |
resolveEntity(String publicID,
String systemID) |
Struct |
validate(InputSource xml) |
void |
warning(SAXParseException spe) |
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl
public XMLValidator(InputSource validator, String strSchema)
public InputSource resolveEntity(String publicID, String systemID) throws SAXException
resolveEntity
in interface EntityResolver
resolveEntity
in class XMLEntityResolverDefaultHandler
SAXException
public void warning(SAXParseException spe)
warning
in interface ErrorHandler
warning
in class DefaultHandler
public void error(SAXParseException spe)
error
in interface ErrorHandler
error
in class DefaultHandler
public void fatalError(SAXParseException spe) throws SAXException
fatalError
in interface ErrorHandler
fatalError
in class DefaultHandler
SAXException
public Struct validate(InputSource xml) throws XMLException
XMLException
Copyright © 2015 Lucee