com.aspose.html.dom.traversal

Interface IElementTraversal

    • Method Detail

      • getFirstElementChild

        @DOMNameAttribute(name="firstElementChild")
         @DOMNullableAttribute
        Element getFirstElementChild()

        Returns the first child element node of this element. null if this element has no child elements.

        Value: The first element child.
      • getLastElementChild

        @DOMNameAttribute(name="lastElementChild")
         @DOMNullableAttribute
        Element getLastElementChild()

        Returns the last child element node of this element. null if this element has no child elements.

        Value: The last element child.
      • getPreviousElementSibling

        @DOMNameAttribute(name="previousElementSibling")
        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.

        Value: The previous element sibling.
      • getNextElementSibling

        @DOMNameAttribute(name="nextElementSibling")
        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.

        Value: The next element sibling.
      • getChildElementCount

        @DOMNameAttribute(name="childElementCount")
        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.

        Value: The child element count.