Search Path Examples
The following table contains examples of search paths and their descriptions.
Search path |
Description |
---|---|
~ |
Selects the |
~~ |
Selects the |
/ |
Selects the root. |
/* |
Selects the child objects of the root. The asterisk (*) is a wildcard character. |
//folder |
Selects all When a path starts with two slashes (//), all objects in the content store that
fulfill the specified criteria are selected. In this case, the selected objects must
be instances of the class |
//folder | //report |
Selects all |
//* |
Selects all objects in the content store. The asterisk (*) is a wildcard character. |
/configuration//* |
Selects the The two slashes specify all descendant objects of the current object
( The asterisk (*) is a wildcard character. For more information, see Location Steps |
/content//folder/report/ parent::folder |
Selects every descendant of the |
/content/package/folder [@name='Documentation Report Samples']/* |
Selects all child objects in the Documentation Report Samples folder. Expressions enclosed in square brackets are predicates used to filter a set of objects. The at sign (@) specifies a property name. The asterisk (*) is a wildcard character. For more information, see Predicates |
/content/package/folder/ report[contains(@name, 'Product List')] |
Selects all The at sign (@) specifies a property name. For more information, see Functions |
|
Selects all |
CAMID(":")/*[@routingHints] |
Selects all objects in the Cognos namespace where the routingHints property is not nil. Expressions enclosed in square brackets are predicates used to filter a set of objects. CAMID(":") specifies the Cognos namespace. The at sign (@) specifies a property name. The asterisk (*) is a wildcard character. For more information, see Predicates |
CAMID(":")/*[not(@routingHints)] |
Selects all objects in the Cognos namespace where the routingHints property is nil. Expressions enclosed in square brackets are predicates used to filter a set of objects. CAMID(":") specifies the Cognos namespace. The at sign (@) specifies a property name. The asterisk (*) is a wildcard character. For more information, see Predicates |