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")
 

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