|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.xml.parsers.DocumentBuilder com.icl.saxon.om.DocumentBuilderImpl
Constructor Summary | |
DocumentBuilderImpl()
|
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()
Obtain a new instance of a DOM Document object
to build a DOM tree with. |
org.w3c.dom.Document |
parse(org.xml.sax.InputSource in)
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 er)
Specify the ErrorHandler to be used by the parser. |
Methods inherited from class javax.xml.parsers.DocumentBuilder |
getSchema, isXIncludeAware, parse, parse, parse, parse, reset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DocumentBuilderImpl()
Method Detail |
public boolean isNamespaceAware()
DocumentBuilder
isNamespaceAware
in class DocumentBuilder
public boolean isValidating()
DocumentBuilder
isValidating
in class DocumentBuilder
public org.w3c.dom.Document newDocument()
DocumentBuilder
Document
object
to build a DOM tree with.
newDocument
in class DocumentBuilder
public org.w3c.dom.Document parse(org.xml.sax.InputSource in) throws org.xml.sax.SAXException
DocumentBuilder
Document
object.
An IllegalArgumentException
is thrown if the
InputSource
is null
null.
parse
in class DocumentBuilder
in
- InputSource containing the content to be parsed.
org.xml.sax.SAXException
- If any parse errors occur.DocumentHandler
public void setEntityResolver(org.xml.sax.EntityResolver er)
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 DocumentBuilder
er
- The EntityResolver
to be used to resolve entities
present in the XML document to be parsed.public void setErrorHandler(org.xml.sax.ErrorHandler er)
DocumentBuilder
ErrorHandler
to be used by the parser.
Setting this to null
will result in the underlying
implementation using it's own default implementation and
behavior.
setErrorHandler
in class DocumentBuilder
er
- The ErrorHandler
to be used by the parser.public org.w3c.dom.DOMImplementation getDOMImplementation()
DocumentBuilder
DOMImplementation
object.
getDOMImplementation
in class DocumentBuilder
DOMImplementation
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |