|
SienaXML (v.2.0.0) API documentation | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsiena.xml.DOMParserWrapper
public class DOMParserWrapper
This class is used to wrap the ugly details of parsing a XML document from the users. It handles any type of error conditions while parsing the xml document and deals with them accordenly. This may mean throwing an exception or returning with a null return value. Upon finishing parsing it will return a W3C Document that contains the DOM.
ErrorHandler
Constructor Summary | |
---|---|
DOMParserWrapper()
This is the constructor for the parser. |
Method Summary | |
---|---|
void |
error(org.xml.sax.SAXParseException exception)
|
void |
fatalError(org.xml.sax.SAXParseException exception)
|
org.w3c.dom.Document |
parse(org.xml.sax.InputSource inputSource)
This method will parse the given XML document that is in the InputSource wrapper. |
org.w3c.dom.Document |
parse(java.lang.String xmlString)
This method parses the XML passed in as the string and returns the DOM Document. |
void |
warning(org.xml.sax.SAXParseException exception)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DOMParserWrapper()
Method Detail |
---|
public org.w3c.dom.Document parse(java.lang.String xmlString)
xmlString
- The string containing the XML
org.apache.xerces.parsers.DOMParser
public org.w3c.dom.Document parse(org.xml.sax.InputSource inputSource) throws org.xml.sax.SAXException
inputSource
- InputSource object that contains the XML document.
org.xml.sax.SAXException
- Thrown when the XML string parsed contains a syntax error.public void error(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void warning(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
|
SienaXML (v.2.0.0) API documentation | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |