Example of a GetMetadataObjects Request That Specifies the <XMLSELECT search="criteria"/> Element

The following example shows how the <XMLSELECT search="criteria"/> element is specified in a GetMetadataObjects method call. The search string specifies concatenated AssociationPath criteria.
<GetMetadataObjects>
   <Reposid>A0000001.A52WE4LI</Reposid>
   <Type>Document</Type>
   <Objects/>
   <NS>SAS</NS>
   <!-- Specify the OMI_XMLSELECT (128) flag  -->
   <Flags>128</Flags> 
<!-- Include the <XMLSELECT search="criteria"/> element --> 
   <Options>
      <XMLSELECT search="*[ResponsibleParties/*[@Role='Owner']/Persons/*
     [@Name='Joe Accountant']][Reports/Report[@Name='Sales']/Groups/Group
     [@Name='Accountant']]"/> 
   </Options>
</GetMetadataObjects>
Output is returned in the <OBJECTS> element.