
Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
>> myXmlNodeList =
>> MyXmlDoc.SelectNodes("MyParentNode/SomeOtherNode[Title='Joe's
[quoted text clipped - 11 lines]
>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?
Martin Honnen - 18 Jul 2008 17:29 GMT
>>> myXmlNodeList =
>>> MyXmlDoc.SelectNodes("MyParentNode/SomeOtherNode[Title='Joe's
[quoted text clipped - 28 lines]
> ...If you have a moment to handle this follow-up question, I'd really
> appreciate it. Have I read your suggestion correctly?
Yes, with VB if you want to include a double quote inside a string
literal then you need to double the double quote, see
http://msdn.microsoft.com/en-us/library/thwcx436(VS.80).aspx
where it says:
You must enclose a String literal within quotation marks (" "). If you
need to include a quotation mark as one of the characters in the string,
you use two contiguous quotation marks (""). The following example
illustrates this.
Dim j As String = "Joe said ""Hello"" to me."

Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/