On Fri, 18 Jul 2008 13:09:18 +0200, Martin Honnen <mahotrash@yahoo.de>
wrote:
Quote:
>Alan Mailer wrote:
> Quote:
>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?
| >
MyXmlDoc.SelectNodes("MyParentNode/SomeOtherNode[Title=""Joe's
>Garage""]")
>
>should do. It only gets complicated if you need to use a double quote
>and a single quote together in the string literal.
|
Martin, thanks for responding. It's a little hard to read your
suggestion, so I'm going to parse it here and hope you'll let me know
if I'm reading it correctly. Parsed out, your SelectNodes statement
is written as follows:
Double Quotes
MyParentNode/SomeOtherNode[Title=
Double Quotes
Double Quotes
Joe's Garage
Double Quotes
Double Quotes
]
Double Quotes
....If you have a moment to handle this follow-up question, I'd really
appreciate it. Have I read your suggestion correctly?