XMLNode.SelectSingleNode Method (Word)
Returns an XMLNode object that represents the first child element that matches the XPath parameter within the specified XML element. .
Syntax
expression .SelectSingleNode(XPath, PrefixMapping, FastSearchSkippingTextNodes)
expression An expression that returns an XMLNode object.
Parameters
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
XPath |
Required |
String |
Specifies a valid XPath string. For more information on XPath, see the XPath reference documentation on the Microsoft Developer Network (MSDN) Web site. |
PrefixMapping |
Optional |
String |
Provides the prefix in the schema against which to perform the search. Use the PrefixMapping parameter if your XPath parameter uses names to search for elements. |
FastSearchSkippingTextNodes |
Optional |
Boolean |
True skips all text nodes while searching for the specified node. False includes text nodes in the search. Default value is False. |
Return Value
XMLNode