xpath question

  • Thread starter Thread starter C# newbie
  • Start date Start date
C

C# newbie

Hi,

How can I make my XPath query to return both "Bob" & "bob" (during search
for a
string) ?

any idea?

thanks
 
Something like //node/whatever[@name = bob | Bob]

Probably not the correct syntax, but the idea is to use the | operator. Look
up the XPath reference in MSDN, it has samples.
 
ok, my bad! looks I didn't explain it the way I had to.
I want my query to include upper cases and lower cases. No dependency on Aa
Bb .. Zz! the query

Thanks

Klaus H. Probst said:
Something like //node/whatever[@name = bob | Bob]

Probably not the correct syntax, but the idea is to use the | operator. Look
up the XPath reference in MSDN, it has samples.


--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/

C# newbie said:
Hi,

How can I make my XPath query to return both "Bob" & "bob" (during search
for a
string) ?

any idea?

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top