Java org.w3c.dom Element fields, constructors, methods, implement or subclass

Example usage for Java org.w3c.dom Element fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.w3c.dom Element.

The text is from its open source code.

Subclass

org.w3c.dom.Element has subclasses.
Click this link to see all its subclasses.

Implementation

org.w3c.dom.Element has the following implementations.
Click this link to see all its implementation.

Method

NodeappendChild(Node newChild)
Adds the node newChild to the end of the list of children of this node.
NodecloneNode(boolean deep)
Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes.
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
StringgetAttribute(String name)
Retrieves an attribute value by name.
AttrgetAttributeNode(String name)
Retrieves an attribute node by name.
AttrgetAttributeNodeNS(String namespaceURI, String localName)
Retrieves an Attr node by local name and namespace URI.
StringgetAttributeNS(String namespaceURI, String localName)
Retrieves an attribute value by local name and namespace URI.
NamedNodeMapgetAttributes()
A NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise.
StringgetBaseURI()
The absolute base URI of this node or null if the implementation wasn't able to obtain an absolute URI.
NodeListgetChildNodes()
A NodeList that contains all children of this node.
ClassgetClass()
Returns the runtime class of this Object .
NodeListgetElementsByTagName(String name)
Returns a NodeList of all descendant Elements with a given tag name, in document order.
NodeListgetElementsByTagNameNS(String namespaceURI, String localName)
Returns a NodeList of all the descendant Elements with a given local name and namespace URI in document order.
NodegetFirstChild()
The first child of this node.
NodegetLastChild()
The last child of this node.
StringgetLocalName()
Returns the local part of the qualified name of this node.
StringgetNamespaceURI()
The namespace URI of this node, or null if it is unspecified (see ).
NodegetNextSibling()
The node immediately following this node.
StringgetNodeName()
The name of this node, depending on its type; see the table above.
shortgetNodeType()
A code representing the type of the underlying object, as defined above.
StringgetNodeValue()
The value of this node, depending on its type; see the table above.
DocumentgetOwnerDocument()
The Document object associated with this node.
NodegetParentNode()
The parent of this node.
StringgetPrefix()
The namespace prefix of this node, or null if it is unspecified.
NodegetPreviousSibling()
The node immediately preceding this node.
StringgetTagName()
The name of the element.
StringgetTextContent()
This attribute returns the text content of this node and its descendants.
ObjectgetUserData(String key)
Retrieves the object associated to a key on a this node.
booleanhasAttribute(String name)
Returns true when an attribute with a given name is specified on this element or has a default value, false otherwise.
booleanhasAttributeNS(String namespaceURI, String localName)
Returns true when an attribute with a given local name and namespace URI is specified on this element or has a default value, false otherwise.
booleanhasAttributes()
Returns whether this node (if it is an element) has any attributes.
booleanhasChildNodes()
Returns whether this node has any children.
inthashCode()
Returns a hash code value for the object.
NodeinsertBefore(Node newChild, Node refChild)
Inserts the node newChild before the existing child node refChild.
booleanisDefaultNamespace(String namespaceURI)
This method checks if the specified namespaceURI is the default namespace or not.
booleanisEqualNode(Node arg)
Tests whether two nodes are equal.
booleanisSameNode(Node other)
Returns whether this node is the same node as the given one.
StringlookupNamespaceURI(String prefix)
Look up the namespace URI associated to the given prefix, starting from this node.
StringlookupPrefix(String namespaceURI)
Look up the prefix associated to the given namespace URI, starting from this node.
voidnormalize()
Puts all Text nodes in the full depth of the sub-tree underneath this Node, including attribute nodes, into a "normal" form where only structure (e.g., elements, comments, processing instructions, CDATA sections, and entity references) separates Text nodes, i.e., there are neither adjacent Text nodes nor empty Text nodes.
voidremoveAttribute(String name)
Removes an attribute by name.
AttrremoveAttributeNode(Attr oldAttr)
Removes the specified attribute node.
voidremoveAttributeNS(String namespaceURI, String localName)
Removes an attribute by local name and namespace URI.
NoderemoveChild(Node oldChild)
Removes the child node indicated by oldChild from the list of children, and returns it.
NodereplaceChild(Node newChild, Node oldChild)
Replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.
voidsetAttribute(String name, String value)
Adds a new attribute.
AttrsetAttributeNode(Attr newAttr)
Adds a new attribute node.
AttrsetAttributeNodeNS(Attr newAttr)
Adds a new attribute.
voidsetAttributeNS(String namespaceURI, String qualifiedName, String value)
Adds a new attribute.
voidsetIdAttribute(String name, boolean isId)
If the parameter isId is true, this method declares the specified attribute to be a user-determined ID attribute .
voidsetIdAttributeNode(Attr idAttr, boolean isId)
If the parameter isId is true, this method declares the specified attribute to be a user-determined ID attribute .
voidsetIdAttributeNS(String namespaceURI, String localName, boolean isId)
If the parameter isId is true, this method declares the specified attribute to be a user-determined ID attribute .
voidsetNodeValue(String nodeValue)
The value of this node, depending on its type; see the table above.
voidsetPrefix(String prefix)
The namespace prefix of this node, or null if it is unspecified.
voidsetTextContent(String textContent)
This attribute returns the text content of this node and its descendants.
ObjectsetUserData(String key, Object data, UserDataHandler handler)
Associate an object to a key on this node.
StringtoString()
Returns a string representation of the object.