Filtering a GetMetadataObjects Request |
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.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.