Previous Page | Next Page

Filtering a GetMetadataObjects Request

Example of a GetMetadataObjects Request That Specifies an <XMLSELECT> Element

The following example shows how the <XMLSELECT> element is specified in a GetMetadataObjects method call. The <XMLSELECT> element 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> element and a search string  --> 
   <Options>
      <XMLSelect search="*[ResponsibleParties/*[@Role='Owner']/Persons/*
     [@Name='Joe Accountant']][Reports/Report[@Name='Sales']/Groups/Group
     [@Name='Accountant']]"/> 
   </Options>
</GetMetadataObjects>

The request sets the OMI_XMLSELECT (128) flag and specifies the <XMLSELECT> search string in the <OPTIONS> element. Output is returned in the <OBJECTS> element.

Previous Page | Next Page | Top of Page