Robert Mago wrote:
How do you evaluate an xpath in c# containing a ' ? I tried using ' but
it did not work
A single quote should not pose a problem e.g.
xmlDocument.SelectSingleNode(@"//p[@id = 'p1']")
It only becomes difficult if you want to write a string literal
containing single and double quotes, then you have to break up the
string and use concat e.g.
xmlDocument.SelectSingleNode("@//p[contains(., concat('""', ""Kibo's
email"", '""'))]")
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/