S
S
Shimpanze2017-03-03 05:11:51
PHP
Shimpanze, 2017-03-03 05:11:51

XPath: what does this '*/*' search construct mean?

Hello!
Tell me, please, what does this search construction mean:
$xpath->query( '*/*' )
specifically, this one: */* - rummaged through all the documentation, did not find anything like it anywhere.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karpov, 2017-03-03
@Shimpanze

* - denotes any name or character set along the specified axis, for example: * - any child node; @* - any attribute.
/ - defines the level of the tree, that is, separates the addressing steps
. I will assume that this is any object that has the second level in the tree

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question