Package org.eigenbase.xom.wrappers
Class XercesDOMParser
java.lang.Object
org.eigenbase.xom.wrappers.GenericDOMParser
org.eigenbase.xom.wrappers.XercesDOMParser
- All Implemented Interfaces:
Locator
,Parser
,ErrorHandler
This private helper class presents a GenericDOMParser using Xerces, with
simple error handling appropriate for a testing environment.
-
Field Summary
Fields inherited from class org.eigenbase.xom.wrappers.GenericDOMParser
document, errorBuffer, errorOut, LOAD_EXTERNAL_DTD_FEATURE, VALIDATION_FEATURE
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a non-validating Xerces DOM Parser.XercesDOMParser
(boolean validate) Constructs a Xerces DOM Parser. -
Method Summary
Modifier and TypeMethodDescriptionCreates a wrapper representing an XML element.protected Document
Parses the specified URI and returns the document.Methods inherited from class org.eigenbase.xom.wrappers.GenericDOMParser
error, fatalError, getLocation, handleErrors, isKeepPositions, parse, parse, parse, parse, prepareParse, setKeepPositions, warning
-
Constructor Details
-
XercesDOMParser
Constructs a non-validating Xerces DOM Parser.- Throws:
XOMException
-
XercesDOMParser
Constructs a Xerces DOM Parser.- Parameters:
validate
- whether to enable validation- Throws:
XOMException
-
-
Method Details
-
parseInputSource
Description copied from class:GenericDOMParser
Parses the specified URI and returns the document.- Specified by:
parseInputSource
in classGenericDOMParser
- Parameters:
in
- Input source- Returns:
- Document
- Throws:
XOMException
- on error
-
create
Description copied from interface:Parser
Creates a wrapper representing an XML element.- Specified by:
create
in interfaceParser
- Overrides:
create
in classGenericDOMParser
- Parameters:
tagName
- Name of element- Returns:
- Wrapper element
-