I’m trying to escape quotes in an xpath string like so:
var mktCapNode = htmlDoc.DocumentNode.SelectSingleNode("//*[@id=""yfs_j10_a""]");
The actual string I want passed is:
//*[@id="yfs_j10_a"]
This gives a compiler errors: ) expected and ; expected
I’m sure it’s simple but I’m stumped. Any ideas?
Or use the escape char ‘\’: