this is what I want…
Assuming I’m trying to get at the value of ‘B’
<tree> <nodea> <nodeb> A=foo; B=bar; C=goo; </nodeb> </nodea> </tree>
the following is magical syntax which would make sense… I’m looking for something comparable that actually works 🙂
string = './nodea/nodeb/[ REGEX( 'B=(.*?);' ) ]/ $1'
Is there anything like this in any java xpath library?
XPath 2.0 adds regular expressions. Something like this ought to do what you want, I think: