xpath Location paths and axes Traversing child elements


Example

Traversing from the root node to a descendant element using the child axis:

/child::html/child::body/child::div/child::span

Since the child axis is the default axis, this can be abbreviated to:

/html/body/div/span