
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Modifier and Type | Method and Description |
|---|---|
String |
getAttribute(String name)
This method retrieves the attribute which has a name of
name. |
Attr |
getAttributeNode(String name)
This method retrieves the attribute node which has a name of
name. |
NodeList |
getElementsByTagName(String name)
This method retrieves the elements by tag name which has a name of
name. |
String |
getTagName()
This method retrieves the tag name.
|
boolean |
hasAttribute(String name)
This method determines whether this
Element has an attribute
with the supplied name. |
void |
removeAttribute(String name)
This method removes the attribute which has the specified name.
|
void |
setAttribute(String name,
String value)
This method sets the attribute specified by
name to
value. |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, normalize, removeChild, replaceChild, setNodeValueString getAttribute(String name)
name.name - the name of the attribute to get the value ofnameAttr getAttributeNode(String name)
name. This Attr will have the same value as
would be gotten with getAttribute.name - the name of the Attr to getElementwhich has a name
of nameNodeList getElementsByTagName(String name)
name.name - the name of the Element to getElement which has a
name of nameString getTagName()
Elementboolean hasAttribute(String name)
Element has an attribute
with the supplied name.name - the name of the attributetrue if this Element has an attribute
that name.void removeAttribute(String name)
name - the name of the attribute to removeCopyright © 2018. All rights reserved.