| Name | Return value |
| child | Children |
| parent | Direct ancestor |
| descendant(-or-self) | Descendants (plus current node) |
| ancestor(-or-self) | Ancestors (plus current node) |
| following | All nodes following the current one in the document |
| preceding | All nodes preceding the current one in |
| following-sibling | Following siblings of the current node |
| preceding-sibling | Preceding siblings of the current node |
| attribute | Attributes of an element |
| namespace | Namespace node of the current element |
| self | Current node |
Dieser Text ist der Zeitschriften-Ausgabe 01/2001 von iX entnommen.
iOS, Android, Windows Phone 7 und HTML5 - das neue Sonderheft von heise Developer führt Einsteiger und Profis in die Programmierung mobiler Geräte ein.