## IParentNode interface

Defines the `IParentNode` interface that is implemented by any possible parents.

```java
public interface IParentNode : IElementTraversal
```

## Properties

| Name | Description |
| --- | --- |
| [getChildElementCount](../../com.aspose.html.dom/iparentnode/childelementcount/) The childElementCount attribute must return the number of children of the context object that are elements. |
| [getChildren](../../com.aspose.html.dom/iparentnode/children/) Returns the child elements. |
| [getFirstElementChild](../../com.aspose.html.dom/iparentnode/firstelementchild/) Returns the first child that is an element, and null otherwise. |
| [getLastElementChild](../../com.aspose.html.dom/iparentnode/lastelementchild/) Returns the last child that is an element, and null otherwise. |

## Methods

| Name | Description |
| --- | --- |
| [querySelector](../../com.aspose.html.dom/iparentnode/queryselector/)(String) | Returns the first element that is a descendant of node that matches selectors. |
| [querySelectorAll](../../com.aspose.html.dom/iparentnode/queryselectorall/)(String) | Returns all element descendants of node that match selectors. |

### See Also

* interface [IElementTraversal](../../com.aspose.html.dom.traversal/ielementtraversal/)
* package [com.aspose.html.dom](../../com.aspose.html.dom/)
* package [Aspose.HTML](../../)
