Assuming I donβt know the name of my node database or its children, what is the XPath syntax for "all nodes exactly one below the node base?"
If the template is an XmlNode, I have the following code:
XmlNodeList kvpsList = pattern.SelectNodes(@"//");
Which looks right, but I get the following exception:
System.Xml.XPath.XPathException: Expression must evaluate to a node-set.
What is the correct syntax?
source
share