A
Altu
Hi all,
What does something like [/a/b] mean in an XPath query like /c/d[/a/
b] ?
If I am not wrong, /c/d[./a/b] means return all d elements that their
parent is c and their grand parent is the root element and have a
child that is a and their a child has a child b. But I don't know when
we don't use an expression that starts with ./ or .// in a predicate
and instead use an epxression that starts with / or // what it would
mean.
Does /c/d[/a], for example, mean return all d elements that have a
parent (c with a parent root) only if the root has a child a?
Thanks in advance.
What does something like [/a/b] mean in an XPath query like /c/d[/a/
b] ?
If I am not wrong, /c/d[./a/b] means return all d elements that their
parent is c and their grand parent is the root element and have a
child that is a and their a child has a child b. But I don't know when
we don't use an expression that starts with ./ or .// in a predicate
and instead use an epxression that starts with / or // what it would
mean.
Does /c/d[/a], for example, mean return all d elements that have a
parent (c with a parent root) only if the root has a child a?
Thanks in advance.