I'm attempting to check for the existence of a node using the following .NET code:
xmlDocument.SelectSingleNode(
String.Format("//ErrorTable/ProjectName/text()='{0}'", projectName));
This always raises:
XPathException: Expression must evaluate to a node-set.
Why am I getting this error and how can I resolve it? Thank you.