XPath - Some Important Abbreviations

| The most important abbreviation is that child::can be omitted from a location step. In effect,childis the default axis.For example, a location path   Data/username is short forchild::Data/child::username | 
| There is also an abbreviation for attributes:  attribute::can be abbreviated to@.For example, a location path   /*/*/*/*/*/*/*/perm[@type="admin"]is short for/*/*/*/*/*/*/*/child::perm[attribute::type="admin"]... and so selects  permchildren with atypeattribute with value equal toadmin. | 
| //is short for/descendant-or-self::node()/.For example,  1.) //permis short for/descendant-or-self::node()/child::perm... and so will select any permelement in the document (even apermelement that is a document element will be selected by//permsince the document element node is a child of the root node);2.) Data//permis short forData/descendant-or-self::node()/child::perm... and so will select all p ermdescendants ofDatachildren. | 
| 
 For example,  ../titleis short forparent::node()/child::title... and so will select the  titlechildren of the parent of the context node
 //getUserToken/usertoken/permissions/../usernameis short for //getUserToken/usertoken/permissions/parent::node()/child::username | 


