|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.xml.parsers.DocumentBuilder
org.apache.xerces.jaxp.DocumentBuilderImpl
Field Summary |
Fields inherited from interface org.apache.xerces.jaxp.JAXPConstants |
JAXP_SCHEMA_LANGUAGE, JAXP_SCHEMA_SOURCE, W3C_XML_SCHEMA |
Method Summary | |
org.w3c.dom.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. |
org.w3c.dom.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. |
org.w3c.dom.Document |
parse(org.xml.sax.InputSource is)
Parse the content of the given input source as an XML document and return a new DOM Document object. |
void |
setEntityResolver(org.xml.sax.EntityResolver er)
Specify the EntityResolver to be used to resolve
entities present in the XML document to be parsed. |
void |
setErrorHandler(org.xml.sax.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 org.w3c.dom.Document newDocument()
public org.w3c.dom.DOMImplementation getDOMImplementation()
javax.xml.parsers.DocumentBuilder
DOMImplementation
object.
DOMImplementation
.public org.w3c.dom.Document parse(org.xml.sax.InputSource is) throws org.xml.sax.SAXException, java.io.IOException
javax.xml.parsers.DocumentBuilder
Document
object.
is
- InputSource containing the content to be parsed.
org.xml.sax.SAXException
- If any parse errors occur.
java.io.IOException
- If any IO errors occur.DocumentHandler
public boolean isNamespaceAware()
javax.xml.parsers.DocumentBuilder
public boolean isValidating()
javax.xml.parsers.DocumentBuilder
public void setEntityResolver(org.xml.sax.EntityResolver er)
javax.xml.parsers.DocumentBuilder
EntityResolver
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.
er
- The EntityResolver
to be used to resolve entities
present in the XML document to be parsed.public void setErrorHandler(org.xml.sax.ErrorHandler eh)
javax.xml.parsers.DocumentBuilder
ErrorHandler
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.
eh
- The ErrorHandler
to be used to report errors
present in the XML document to be parsed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |