Specifying the Axis Portion of a Location Step

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - XPath Developer's Guide

Specifying the Axis Portion of a Location Step

The axis portion of an XPath location step specifies, like the axis of a two-dimensional graph, the direction in which to locate something relative to some starting point. There is an axis corresponding to each of the basic XPath tree model relationships:

  • parent::
  • child::
  • ancestor::
  • descendant::
  • ancestor-or-self::
  • descendant-or-self::
  • preceding::
  • following::
  • preceding-sibling::
  • following-sibling::
  • self::
  • attribute::
  • namespace::

See Also

Use XPath Axes to Navigate through XML Data