[as3]
var xml:XML=<items>
<product>
<resourceImages>
<image />
</resourceImages>
</product>
<product>
<resourceImages>
<image />
</resourceImages>
</product>
<prepack>
<resourceImages />
</prepack>
<product>
<resourceImages>
<image />
<image />
</resourceImages>
</product>
<prepack>
<resourceImages />
</prepack>
</items>;

//loop on all all resourceImage node
for each (var resourceImageXML:XML in xml..resourceImages){
// and check if node if defined
if (resourceImageXML.image != undefined) {
// ok node have image
}
}
[/as3]