O'Reilly logo

XML Companion, The, Third Edition by Neil Bradley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Complex location paths

Apart from the selection of children, it has already been shown that parents and further ancestors of the current element can also be selected. But there are many other options available, and each can be thought of as a direction, or an ' axis'. A particular axis is indicated using an 'axis specifier'. One axis specifier has already been seen; the 'child::' axis specifier selects the child axis.

Close family

Parents, children and siblings can be selected using the 'parent::', 'child::', 'preceding-sibling::' and 'following-sibling::' axis specifiers:

The ' parent::' prefix, along with the 'node()' function, is equivalent ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required