I got the error message: System.Xml.XPath.XPathException, occurred in system.xml.dll, when I tried the code below:
string lastName = "O'BRIEN";
physNode = "//ENT[@NM/LT='" + lastName.ToUpper() + "']";
XmlNode entNode2 = xmlDoc.SelectSingleNode(physNode);
It complains about the string "//ENT[@NM/LT='O'BRIEN']" having a invalid token. Please help. Thanks in advance.