Aspose::Words::CompositeNode::SelectSingleNode method

CompositeNode::SelectSingleNode method

Selects the first Node that matches the XPath expression.

System::SharedPtr<Aspose::Words::Node> Aspose::Words::CompositeNode::SelectSingleNode(const System::String &xpath)
ParameterTypeDescription
xpathconst System::String&The XPath expression.

ReturnValue

The first 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