You can perform queries against the repository through the <query-items> tag. The query itself may be specified as a query attribute of the <query-items> tag or as PCDATA between the opening and closing tags. The query uses the Repository Query Language (RQL) described in the Repository Query Language section of the Repository Queries chapter.

For example, the following tag queries the database for any repository items whose item descriptor is named users and whose username property is Marty:

<query-items item-descriptor="users">username="Marty"</query-items>

Queries can be used in this way to preload repository caches. See Preloading Caches in the SQL Repository Caching chapter.