|
|||||||||||
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.DocumentBuilder
javax.xml.parsers.DocumentBuilder
public DOMImplementation getDOMImplementation()
javax.xml.parsers.DocumentBuilder
DOMImplementation
object.getDOMImplementation
in class javax.xml.parsers.DocumentBuilder
javax.xml.parsers.DocumentBuilder
DOMImplementation
.public Document parse(InputSource is) throws SAXException, java.io.IOException
javax.xml.parsers.DocumentBuilder
Document
object.parse
in class javax.xml.parsers.DocumentBuilder
javax.xml.parsers.DocumentBuilder
is
- 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.DocumentHandler
public boolean isNamespaceAware()
javax.xml.parsers.DocumentBuilder
isNamespaceAware
in class javax.xml.parsers.DocumentBuilder
javax.xml.parsers.DocumentBuilder
public boolean isValidating()
javax.xml.parsers.DocumentBuilder
isValidating
in class javax.xml.parsers.DocumentBuilder
javax.xml.parsers.DocumentBuilder
public void setEntityResolver(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.setEntityResolver
in class javax.xml.parsers.DocumentBuilder
javax.xml.parsers.DocumentBuilder
er
- The EntityResolver
to be used to resolve entities
present in the XML document to be parsed.public void setErrorHandler(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.setErrorHandler
in class javax.xml.parsers.DocumentBuilder
javax.xml.parsers.DocumentBuilder
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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |