xpathFirst


Description:

public static XmlNode? xpathFirst (XmlNode root, string expr)

Finds the first node matching a simple XPath expression.

Parameters:

root

root node.

expr

XPath expression.

Returns:

first matching node, or null.