September 2004
Intermediate to advanced
712 pages
24h 45m
English
A double forward slash (//) selects from all descendants of the
context node, as well as the context node itself. At
the beginning of an XPath expression, it selects from all of the
nodes in the document. For example, the XPath expression //name selects all name elements in the document. The
expression //@id selects all the
id attributes of any element in
the document. The expression person//@id selects all the id attributes of any element contained in
the person child elements of the
context node, as well as the id
attributes of the person elements
themselves.