com.aspose.html.dom

Interface IParentNode

    • Method Detail

      • getChildElementCount

        int getChildElementCount()

        The childElementCount attribute must return the number of children of the context object that are elements.

        Value: The child element count.
        Specified by:
        getChildElementCount in interface IElementTraversal
      • querySelector

        @DOMNameAttribute(name="querySelector")
         @DOMNullableAttribute
        Element querySelector(String selectors)

        Returns the first element that is a descendant of node that matches selectors.

        Parameters:
        selectors - The selectors.
        Returns:
        Returns the first matched element.
      • querySelectorAll

        @DOMNameAttribute(name="querySelectorAll")
        NodeList querySelectorAll(String selectors)

        Returns all element descendants of node that match selectors.

        Parameters:
        selectors - The selectors.
        Returns:
        Returns the static result of running scope-match a selectors string selectors against the context object.