## CompositeNode::SelectSingleNode method


Selects the first [Node](../../node/) that matches the XPath expression.

```cpp
System::SharedPtr<Aspose::Words::Node> Aspose::Words::CompositeNode::SelectSingleNode(const System::String &xpath)
```


| Parameter | Type | Description |
| --- | --- | --- |
| xpath | const System::String\& | The XPath expression. |

### ReturnValue

The first [Node](../../node/) that matches the XPath query or **null** if no matching node is found.
## Remarks


Only expressions with element names are supported at the moment. Expressions that use attribute names are not supported.

## See Also

* Class [Node](../../node/)
* Class [CompositeNode](../)
* Namespace [Aspose::Words](../../)
* Library [Aspose.Words for C++](../../../)
