|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.xom.wrappers.GenericDOMParser
org.eigenbase.xom.wrappers.XercesDOMParser
public class XercesDOMParser
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 | |
|---|---|
XercesDOMParser()
Constructs a non-validating Xerces DOM Parser. |
|
XercesDOMParser(boolean validate)
Constructs a Xerces DOM Parser. |
|
| Method Summary | |
|---|---|
DOMWrapper |
create(java.lang.String tagName)
Creates a wrapper representing an XML element. |
protected org.w3c.dom.Document |
parseInputSource(org.xml.sax.InputSource in)
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XercesDOMParser()
throws XOMException
XOMException
public XercesDOMParser(boolean validate)
throws XOMException
validate - whether to enable validation
XOMException| Method Detail |
|---|
protected org.w3c.dom.Document parseInputSource(org.xml.sax.InputSource in)
throws XOMException
GenericDOMParser
parseInputSource in class GenericDOMParserin - Input source
XOMException - on errorpublic DOMWrapper create(java.lang.String tagName)
Parser
create in interface Parsercreate in class GenericDOMParsertagName - Name of element
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||