Hi and welcome to the forums,
First of all, your XML document is technically invalid as it doesn't have a single root element. With the samples you've posted your current code will more than likely fail with a runtime exception stating that. So first you need to add a root element that encompasses all others.
The problem with your XPath here is that you have both single and double quotes in the element value. There's a trick you can use to get around this using the XPath concat function, you break up the string into sections using only one type of quote and join them like so:
-
string strEnglish = "concat(\"'Guest' and \", '\"Administrator\"')";
-
Providing you add a proper root element to your XML document, this should locate the node you're looking for.
In the future however, if you have any control over the XML document you might want to consider looking into the escape codes
' and
" instead. Could save you some hassle.
Hope this helps.