2

In XPath I can use double slash to express I want to get any node within document, no necessary a child ofa root node, e.g.

//input

would stand for any <input> tag in my XML document.

How do I express it with GPath expression?

dzieciou
  • 4,049
  • 8
  • 41
  • 85

1 Answers1

3

The expression // is replaced by '**' in GPath.

So your query would be:

'**'.input

Link to GPath documentation here.

рüффп
  • 5,172
  • 34
  • 67
  • 113
kimbonics
  • 81
  • 4
  • 1
    Review queue comment: This seems to be a correct answer (I am not familiar), but it would be better with some supporting documentation. – Chris Baker May 20 '15 at 14:15