adoptNode
public org.w3c.dom.Node adoptNode(org.w3c.dom.Node source)
throws org.w3c.dom.DOMException
DOM Level 3
- adoptNode in interface org.w3c.dom.Document
createAttribute
public org.w3c.dom.Attr createAttribute(String name)
throws org.w3c.dom.DOMException
- createAttribute in interface org.w3c.dom.Document
createAttributeNS
public org.w3c.dom.Attr createAttributeNS(String namespaceURI,
String qualifiedName)
throws org.w3c.dom.DOMException
- createAttributeNS in interface org.w3c.dom.Document
createCDATASection
public org.w3c.dom.CDATASection createCDATASection(String data)
throws org.w3c.dom.DOMException
- createCDATASection in interface org.w3c.dom.Document
createComment
public org.w3c.dom.Comment createComment(String data)
- createComment in interface org.w3c.dom.Document
createDocumentFragment
public org.w3c.dom.DocumentFragment createDocumentFragment()
- createDocumentFragment in interface org.w3c.dom.Document
createElement
public org.w3c.dom.Element createElement(String tagName)
throws org.w3c.dom.DOMException
- createElement in interface org.w3c.dom.Document
createElementNS
public org.w3c.dom.Element createElementNS(String namespaceURI,
String qualifiedName)
throws org.w3c.dom.DOMException
- createElementNS in interface org.w3c.dom.Document
createEntityReference
public org.w3c.dom.EntityReference createEntityReference(String name)
throws org.w3c.dom.DOMException
- createEntityReference in interface org.w3c.dom.Document
createProcessingInstruction
public org.w3c.dom.ProcessingInstruction createProcessingInstruction(String target,
String data)
throws org.w3c.dom.DOMException
- createProcessingInstruction in interface org.w3c.dom.Document
createTextNode
public org.w3c.dom.Text createTextNode(String data)
- createTextNode in interface org.w3c.dom.Document
getDoctype
public org.w3c.dom.DocumentType getDoctype()
- getDoctype in interface org.w3c.dom.Document
getDocumentElement
public org.w3c.dom.Element getDocumentElement()
- getDocumentElement in interface org.w3c.dom.Document
getDocumentURI
public String getDocumentURI()
The location of the document or null
if undefined.
Beware that when the Document
supports the feature
"HTML" , the href attribute of the HTML BASE element takes precedence
over this attribute.
- getDocumentURI in interface org.w3c.dom.Document
getDomConfig
public org.w3c.dom.DOMConfiguration getDomConfig()
The configuration used when Document.normalizeDocument
is
invoked.
- getDomConfig in interface org.w3c.dom.Document
getElementById
public org.w3c.dom.Element getElementById(String elementId)
- getElementById in interface org.w3c.dom.Document
getElementsByTagName
public org.w3c.dom.NodeList getElementsByTagName(String tagname)
- getElementsByTagName in interface org.w3c.dom.Document
getElementsByTagNameNS
public org.w3c.dom.NodeList getElementsByTagNameNS(String namespaceURI,
String localName)
- getElementsByTagNameNS in interface org.w3c.dom.Document
getImplementation
public org.w3c.dom.DOMImplementation getImplementation()
- getImplementation in interface org.w3c.dom.Document
getInputEncoding
public String getInputEncoding()
- getInputEncoding in interface org.w3c.dom.Document
getStrictErrorChecking
public boolean getStrictErrorChecking()
An attribute specifying whether errors checking is enforced or not.
When set to false
, the implementation is free to not
test every possible error case normally defined on DOM operations,
and not raise any DOMException
. In case of error, the
behavior is undefined. This attribute is true
by
defaults.
- getStrictErrorChecking in interface org.w3c.dom.Document
getXmlEncoding
public String getXmlEncoding()
public void setInputEncoding(String actualEncoding){
throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
}
- getXmlEncoding in interface org.w3c.dom.Document
getXmlStandalone
public boolean getXmlStandalone()
An attribute specifying, as part of the XML declaration, whether this
document is standalone.
This attribute represents the property [standalone] defined in .
- getXmlStandalone in interface org.w3c.dom.Document
getXmlVersion
public String getXmlVersion()
An attribute specifying, as part of the XML declaration, the version
number of this document. This is null
when unspecified.
This attribute represents the property [version] defined in .
- getXmlVersion in interface org.w3c.dom.Document
importNode
public org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode,
boolean deep)
throws org.w3c.dom.DOMException
- importNode in interface org.w3c.dom.Document
normalizeDocument
public void normalizeDocument()
DOM Level 3
- normalizeDocument in interface org.w3c.dom.Document
renameNode
public org.w3c.dom.Node renameNode(org.w3c.dom.Node n,
String namespaceURI,
String name)
throws org.w3c.dom.DOMException
DOM Level 3
- renameNode in interface org.w3c.dom.Document
setDocumentURI
public void setDocumentURI(String documentURI)
The location of the document or null
if undefined.
Beware that when the Document
supports the feature
"HTML" , the href attribute of the HTML BASE element takes precedence
over this attribute.
- setDocumentURI in interface org.w3c.dom.Document
setStrictErrorChecking
public void setStrictErrorChecking(boolean strictErrorChecking)
An attribute specifying whether errors checking is enforced or not.
When set to false
, the implementation is free to not
test every possible error case normally defined on DOM operations,
and not raise any DOMException
. In case of error, the
behavior is undefined. This attribute is true
by
defaults.
- setStrictErrorChecking in interface org.w3c.dom.Document
setXmlStandalone
public void setXmlStandalone(boolean standalone)
An attribute specifying, as part of the XML declaration, whether this
document is standalone.
This attribute represents the property [standalone] defined in .
- setXmlStandalone in interface org.w3c.dom.Document
setXmlVersion
public void setXmlVersion(String version)
throws org.w3c.dom.DOMException
An attribute specifying, as part of the XML declaration, the version
number of this document. This is null
when unspecified.
This attribute represents the property [version] defined in .
- setXmlVersion in interface org.w3c.dom.Document
org.w3c.dom.DOMException
- NOT_SUPPORTED_ERR: Raised if the version is set to a value that is
not supported by this Document
.