getFirstChildElementWithTag(Node parent, String tagName) Returns the first direct child element with the specified tag name.
Parameters: parent - the parent node. Parameters: tagName - the tag name to search for, if an HTML tag use uppercase.
Returns the first direct child org.w3c.dom.Element below the specified node.
Any child non-element is ignored.
Parameters: node - the node parent. the first child element. Null if the parent node has no child element.
Returns the first direct child element with the specified tag name.
Parameters: parent - the parent node. Parameters: tagName - the tag name to search for, if an HTML tag use uppercase. the first direct child element with this tag or null if not found.
Returns the last direct child org.w3c.dom.Element below the specified node.
Any child non-element is ignored.
Parameters: node - the node parent. the last child element. Null if the parent node has no child element.
Returns the next org.w3c.dom.Element following the specified node in document order.
Any non-element is ignored.
Parameters: node - the original node. the next element. Null if the node has no next element.
Returns the next node following the specified node in document order.
Parameters: node - the original node. the next node. Null if the node has no next node.
Returns the next sibling org.w3c.dom.Element following the specified node.
Any non-element is ignored.
Parameters: node - the original node. the next sibling element. Null if the node has no next sibling element (last child element).
Returns the first parent org.w3c.dom.Element of specified node.
Any non-element parent is ignored.
Parameters: node - the original node. the first parent element. Null if the node has no parent element (for instance, the document root element).
Returns the previous org.w3c.dom.Element following the specified node in document order.
Any non-element is ignored.
Parameters: node - the original node. the previous element. Null if the node has no previous element.
Returns the previous node following the specified node in document order.
Parameters: node - the original node. the previous node. Null if the node has no previous node.
Returns the previous sibling org.w3c.dom.Element following the specified node.
Any non-element is ignored.
Parameters: node - the original node. the previous sibling element. Null if the node has no previous sibling element (first child element).
hasChildElements
public static boolean hasChildElements(Node node)(Code)
Informs whether the specified node has child elements.
Parameters: node - the node to inspect. true if the specified node has child elements.