xpath pattern matching

M

malc

How do I do pattern matching with xpath?

Say I want to match

<b> It is cold <b/>

I have tried match="htm:b[contains(text(),'is')

But it doesn't seem to work. Can anyone help?
 
R

Richard Tobin

How do I do pattern matching with xpath?

Say I want to match

<b> It is cold <b/>

I have tried match="htm:b[contains(text(),'is')

And presumably you have the missing ] at the end, and b is in the htm
namespace.

Then it should work. You'll have to give a complete example if you want
anyone to investigate further.

-- Richard
 

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

Members online

No members online now.

Forum statistics

Threads
474,001
Messages
2,570,254
Members
46,850
Latest member
VMRKlaus8

Latest Threads

Top