AbbrevAbsoluteLocPath

Select nodes on a location path starting at the root node.


Syntax

AbbrevAbsoluteLocPath

// RelativeLocationPath

Description

Select nodes on the RelativeLocationPath starting at the document root, which is indicated by the initial //.

Note:
If you know the position of the node(s) to be selected in a document tree, the query will generally run faster. Example: If you want to know which type of medication has been used for the patients in the current database you need not use //therapy/type, but can use /patient/therapy/type instead.

Compatibility

It corresponds to the expression AbbreviatedAbsoluteLocationPath defined in XPath, Section 2.5, Rule 10.

Examples

  • Select all doctors who discharged patients:

    //discharged/doctor
  • Select all persons whose pager numbers begin with a "3":

    //name[../@pager ~= '3*']
  • Select all element nodes that are not immediate children of the root element node:

    /*//*

Related Expression

RelativeLocationPath