XML Image gallery that resizes to fit

HelloDoes anyone know a good tutorial to build an XML image gallery that reszies to fit the dimensions of the image.Thanks