XPath - Abbreviated Syntax

| XPath | Description | 
| * | selects all element children of the context node (child::*) | 
| text() | selects all text node children of the context node | 
| @name | selects the name attribute of the context node (attribute::name) | 
| @* | selects all the attributes of the context node (attribute::*) | 
| perm[1] | selects the first  permchild of the context node | 
| perm[last()] | selects the last  permchild of the context node | 
| ../perm | select the permchildren of the parent of the context node (parent::name) | 
| perm | selects the permelement, child of the context node (child::perm) | 
| //perm | selects all the perm)descendants of the document root and thus selects allpermelements in the same document as the context node (descendant::perm | 
| . | selects the context node (self::node()) | 
| .. | selects the parent of the context node (parent::node()) | 
| //permissions/perm[5] | selects the fifth  permof thepermissions | 
| ../@attName | selects the  attNameattribute of the parent of the context node | 
| perm[@type="admin"] | selects all  permchildren of the context node that have atypeattribute with valueadmin | 
| para[@type="admin"][5] | selects the fifth  permchild of the context node that has atypeattribute with valueadmin | 
| para[5][@type="admin"] | selects the fifth  permchild of the context node if that child has atypeattribute with valueadmin | 


