An image set groups together related images. Those images can be related by size, item, or variation. The following image set shows images grouped according to size.
<ImageSets> <ImageSet Category="primary"> <SmallImage> ... </SmallImage> <MediumImage> ... </MediumImage> <LargeImage> ... </LargeImage> </ImageSet> </ImageSets>
If the images were variations of the primary image, the image set would include a fourth image, the swatch size image.
<SwatchImage> ... </SwatchImage>
If multiple views of the same item were returned, you would have multiple ImageSet elements within an ImageSets element, where each ImageSet represented a different view, as follows:
<ImageSets>
<ImageSet>
...
</ImageSet>
<ImageSet>
...
</ImageSet>
<ImageSets>In an ImageSet, then, you have one view of an image presented in three or four sizes. So, if Amazon has five different images of an item, Amazon Associates Web Service would return three or four sizes of each image, totaling fifteen or twenty image URLs.
Typically, XML responses include multiple ImageSets, which are returned within the ImageSets element.