I have the following predicate:
var predicate = "$record.TopMerchants.Record[*]";
var nodeitems = $data.resolveNodes(predicate);
which searches an XML structure similar to the following:
<TopMerchants>
<Record>
<Country>United Kingdom</Country>
<X1>testing</X1>
<X2>testing again</X2>
</Record>
<Record>
<Country>United Kingdom</Country>
<X1>testing</X1>
<X2>testing again</X2>
</Record>
<Record>
<Country>United States</Country>
<X1>testing</X1>
<X2>testing again</X2>
</Record>
</TopMerchants>
This works fine in retrieving all of the records under the TopMerchants node, however what I really want is to be able to bring back records that have a specific country but I am not sure how this is done in the predicate, can anyone shed any light as to how you would achieve this??