public class XercesDOMParser extends GenericDOMParser
document, errorBuffer, errorOut, LOAD_EXTERNAL_DTD_FEATURE, VALIDATION_FEATURE
Constructor and Description |
---|
XercesDOMParser()
Constructs a non-validating Xerces DOM Parser.
|
XercesDOMParser(boolean validate)
Constructs a Xerces DOM Parser.
|
Modifier and Type | Method and Description |
---|---|
DOMWrapper |
create(String tagName)
Creates a wrapper representing an XML element.
|
protected Document |
parseInputSource(InputSource in)
Parses the specified URI and returns the document.
|
error, fatalError, getLocation, handleErrors, isKeepPositions, parse, parse, parse, parse, prepareParse, setKeepPositions, warning
public XercesDOMParser() throws XOMException
XOMException
public XercesDOMParser(boolean validate) throws XOMException
validate
- whether to enable validationXOMException
protected Document parseInputSource(InputSource in) throws XOMException
GenericDOMParser
parseInputSource
in class GenericDOMParser
in
- Input sourceXOMException
- on errorpublic DOMWrapper create(String tagName)
Parser
create
in interface Parser
create
in class GenericDOMParser
tagName
- Name of element