|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.xml.parsers.DocumentBuilder
|
+--org.apache.xerces.jaxp.DocumentBuilderImpl
| Method Summary | |
|---|---|
DOMImplementation |
getDOMImplementation()
Obtain an instance of a DOMImplementation object. |
boolean |
isNamespaceAware()
Indicates whether or not this parser is configured to understand namespaces. |
boolean |
isValidating()
Indicates whether or not this parser is configured to validate XML documents. |
Document |
newDocument()
Non-preferred: use the getDOMImplementation() method instead of this one to get a DOM Level 2 DOMImplementation object and then use DOM Level 2 methods to create a DOM Document object. |
Document |
parse(InputSource is)
Parse the content of the given input source as an XML document and return a new DOM Document object. |
void |
setEntityResolver(EntityResolver er)
Specify the EntityResolver to be used to resolve
entities present in the XML document to be parsed. |
void |
setErrorHandler(ErrorHandler eh)
Specify the ErrorHandler to be used to report
errors present in the XML document to be parsed. |
| Methods inherited from class javax.xml.parsers.DocumentBuilder |
|---|
parse, parse, parse, parse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public Document newDocument()
newDocument in class javax.xml.parsers.DocumentBuilderjavax.xml.parsers.DocumentBuilderpublic DOMImplementation getDOMImplementation()
javax.xml.parsers.DocumentBuilderDOMImplementation object.getDOMImplementation in class javax.xml.parsers.DocumentBuilderjavax.xml.parsers.DocumentBuilderDOMImplementation.
public Document parse(InputSource is)
throws SAXException,
java.io.IOException
javax.xml.parsers.DocumentBuilderDocument object.parse in class javax.xml.parsers.DocumentBuilderjavax.xml.parsers.DocumentBuilderis - InputSource containing the content to be parsed.java.io.IOException - If any IO errors occur.SAXException - If any parse errors occur.java.lang.IllegalArgumentException - If the InputSource is null.DocumentHandlerpublic boolean isNamespaceAware()
javax.xml.parsers.DocumentBuilderisNamespaceAware in class javax.xml.parsers.DocumentBuilderjavax.xml.parsers.DocumentBuilderpublic boolean isValidating()
javax.xml.parsers.DocumentBuilderisValidating in class javax.xml.parsers.DocumentBuilderjavax.xml.parsers.DocumentBuilderpublic void setEntityResolver(EntityResolver er)
javax.xml.parsers.DocumentBuilderEntityResolver to be used to resolve
entities present in the XML document to be parsed. Setting
this to null will result in the underlying
implementation using it's own default implementation and
behavior.setEntityResolver in class javax.xml.parsers.DocumentBuilderjavax.xml.parsers.DocumentBuilderer - The EntityResolver to be used to resolve entities
present in the XML document to be parsed.public void setErrorHandler(ErrorHandler eh)
javax.xml.parsers.DocumentBuilderErrorHandler to be used to report
errors present in the XML document to be parsed. Setting
this to null will result in the underlying
implementation using it's own default implementation and
behavior.setErrorHandler in class javax.xml.parsers.DocumentBuilderjavax.xml.parsers.DocumentBuildereh - The ErrorHandler to be used to report errors
present in the XML document to be parsed.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||