<li class="infoItem">
<div class="img" style="background-image: url('img/bulb.png');"></div>
<div class="text">текст текст текст текст</div>
</li>
.infoItem .img {
width:80px;
height:80px;
margin:0 auto 20px;
background-position: 0 0;
background-repeat: no-repeat;
}
.infoItem:hover .img {
background-position: 0 100%;
}
$(xml).find ('товар') .each(function() {
$.each(this.attributes, функция(я, attrib){
var name = attrib.name;
var-value = attrib.value;
// do your magic :-)
});
});