Package org.w3c.dom

Interface ElementTraversal

    • Method Detail

      • getFirstElementChild

        Element getFirstElementChild()
        Returns the first child element node of this element. null if this element has no child elements.
      • getLastElementChild

        Element getLastElementChild()
        Returns the last child element node of this element. null if this element has no child elements.
      • getPreviousElementSibling

        Element getPreviousElementSibling()
        Returns the previous sibling element node of this element. null if this element has no element sibling nodes that come before this one in the document tree.
      • getNextElementSibling

        Element getNextElementSibling()
        Returns the next sibling element node of this element. null if this element has no element sibling nodes that come after this one in the document tree.
      • getChildElementCount

        int getChildElementCount()
        Returns the current number of element nodes that are children of this element. 0 if this element has no child nodes that are of nodeType 1.