| Author |
what's the difference between / and // in Xpath
|
Stephen Ferg
Greenhorn
Joined: Apr 23, 2007
Posts: 9
|
|
|
what's the difference between / and // in Xpath
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
|
/ selects children of the context node, // selects descendants of the context node.
|
 |
Stephen Ferg
Greenhorn
Joined: Apr 23, 2007
Posts: 9
|
|
what's the difference between children and descendants ? Do you mean "/" only selects its direct children and "//" selects children and grandchildren, etc ?
can you give a simple example showing the difference ?
Thanks!
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
|
Yes, that's what I meant. "Child" and "descendant" are standard terminology in XPath. I would really recommend you find some tutorials rather than trying to learn things by asking questions on forums.
|
 |
 |
|
|
subject: what's the difference between / and // in Xpath
|
|
|