Say your response contains the following XML structure.
<items>
<item>
<price>1000</price>
<date>12-12-12</date>
</item>
<item>
<price>110</price>
<date>10-10-10</date>
</item>
<item>
<price>125</price>
<date>Sat Aug 11 12:49:05 NZST 2012</date>
</item>
</items>
- Counting number of item nodes using XPath assertion is straight forward.
which is going to be 3.
- Compare each price value.
- Calculate the total of price values.
No comments:
Post a Comment