Ok, I've looked for an answer for this, because I'm sure it's been
asked a thousand times... but no luck... so here goes.
Imagine I want to create a NodeList based on an XPath statement. The
'query' portion of that statement wants to search for the following
value:
Joe's Garage
....now please note the APOSTROPHE in the above string.
Now, you VB.Net & XML experts know the following will NOT work:
myXmlNodeList =
MyXmlDoc.SelectNodes("MyParentNode/SomeOtherNode[Title='Joe's
Garage'])
....because the *apostrophe* in "Joe's" will screw the statement up and
cause an error to be triggered.
So... precisely how would you experts write the above SelectNodes
statement so that VB.Net would NOT trigger a darn error?
Thanks in advance for your help.