adoptNode
public Node adoptNode(Node source)
throws DOMException
DOM Level 3
createAttribute
public Attr createAttribute(String name)
throws DOMException
createAttributeNS
public Attr createAttributeNS(String namespaceURI,
String qualifiedName)
throws DOMException
createCDATASection
public CDATASection createCDATASection(String data)
throws DOMException
createComment
public Comment createComment(String data)
createDocumentFragment
public DocumentFragment createDocumentFragment()
createElement
public Element createElement(String tagName)
throws DOMException
createElementNS
public Element createElementNS(String namespaceURI,
String qualifiedName)
throws DOMException
createEntityReference
public EntityReference createEntityReference(String name)
throws DOMException
createProcessingInstruction
public ProcessingInstruction createProcessingInstruction(String target,
String data)
throws DOMException
createTextNode
public Text createTextNode(String data)
getDoctype
public DocumentType getDoctype()
getDocumentElement
public Element getDocumentElement()
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.
getDomConfig
public DOMConfiguration getDomConfig()
The configuration used when Document.normalizeDocument
is
invoked.
getElementById
public Element getElementById(String elementId)
getElementsByTagName
public NodeList getElementsByTagName(String tagname)
getElementsByTagNameNS
public NodeList getElementsByTagNameNS(String namespaceURI,
String localName)
getImplementation
public DOMImplementation getImplementation()
getInputEncoding
public String getInputEncoding()
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.
getXmlEncoding
public String getXmlEncoding()
public void setInputEncoding(String actualEncoding){
throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
}
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 .
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 .
importNode
public Node importNode(Node importedNode,
boolean deep)
throws DOMException
normalizeDocument
public void normalizeDocument()
DOM Level 3
renameNode
public Node renameNode(Node n,
String namespaceURI,
String name)
throws DOMException
DOM Level 3
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.
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.
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 .
setXmlVersion
public void setXmlVersion(String version)
throws 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 .