Hi,
I need to generate some kind of a nested Xpath on runtime. Do you know of any Java lib or helper, which can assist with the creation of a complex Xpath expression ? It need it to support nesting, AND, OR and simple operators like equal and contains.
Here is an example of an expression I need to build at runtime (The number of 'Policy' element may vary - it depends on the user input)
//Root[ Policy [ Report/Name/text() = 'report #1' ][ Policy [ Report/Name/text() = 'report #2' ]
Thanks.