can you fix this xml query ?

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

C# newbie

Hi,

I'm new to xml and sometimes gives me a hardtime. is there any xpah query
that returns a particular string I'm looking for?

I used: //*contains(text()="foo") the "foo" could be in any part of xml
file. it could be text or attribute or ....
any idea?

thanks in advance
c# newbiew
 
Ok, I found it just for other people not to waste time on this is:

//*[contains(.,'foo')] not //*contains(text()="foo")
 
Back
Top