public class XercesParser extends AbstractParser implements Parser, org.xml.sax.ErrorHandler
engine, params| Constructor and Description |
|---|
XercesParser()
Instantiate a DocumentBuilderFactory.
|
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.Document |
create()
Create a new empty DOM Document object.
|
void |
error(org.xml.sax.SAXParseException e)
Receive notification of a recoverable error.
|
void |
fatalError(org.xml.sax.SAXParseException e)
Receive notification of a non-recoverable error.
|
org.w3c.dom.Document |
parse(org.xml.sax.InputSource in)
Parse the specified InputSource.
|
void |
warning(org.xml.sax.SAXParseException e)
Receive notification of a warning.
|
parsedebug, init, logpublic org.w3c.dom.Document parse(org.xml.sax.InputSource in)
throws java.io.IOException,
CreationException
parse in interface Parserin - The InputSource to parse.java.io.IOException - If an I/O error occourred accessing the specified
System-ID.CreationException - If an error occourred parsing the document.public org.w3c.dom.Document create()
public void error(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
error in interface org.xml.sax.ErrorHandlere - The Exception thrown during parsing.org.xml.sax.SAXException - The Exception notifying the client.public void fatalError(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
fatalError in interface org.xml.sax.ErrorHandlere - The Exception thrown during parsing.org.xml.sax.SAXException - The Exception notifying the client.public void warning(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
warning in interface org.xml.sax.ErrorHandlere - The Exception thrown during parsing.org.xml.sax.SAXException - The Exception notifying the client.