I want reg ex pattern for xpath

792 views Asked by At

I am using reg ex pattern which does not support below xpath.currently getting null value against this xpath.

I am using xpath which has default namespaces and value is achieved when i change the xpath format but in this case, I am unable to get the value, but if i change the xpath then i get value.

So I need regex for the actual xpath to convert it into expected.

xpath is :

/abc/tra/tra/part[tr/@tr="http://www.sd.org"]/trId

Expected is :

/abc/tra/tra/part[:tr/@tr="http://www.sd.org"]/trId

If any body can then have a look.

0

There are 0 answers