Page 1 of 1

Parentheses in XPath 1.0 Toolbar

Posted: Fri Sep 15, 2006 8:25 am
by debbiep
Problem: Valid Xpath containing parentheses produces parsing error in XPath 1.0 toolbar and XPath Builder.

Hi all,

I sometimes have the need to enter an XPath expression like
(/*/*/*)[1]
which does something different to
/*/*/*[1]

Paths like these give me the error "A location step was expected following the '/' or '//' token".

They work in the XWatch tab, for what it's worth.

This applies to Oxygen 7.2 on at least Windows and Mac OS.[/code]

Posted: Fri Sep 15, 2006 5:16 pm
by sorin_ristache
Hello,

It is a bug when analyzing and executing the XPath expression that you enter in the toolbar. We fixed it already for the next version of <oXygen/>. Until the next version is released please apply the same expression in the XPath toolbar as an XPath 2.0 expression. It will work without problems.


Regards,
Sorin