Short of trying to explain all that, I am attaching a full blown example that you can see, use, mess with, modify, delete ... whatever.
1 - XHTML Document
1 - Very basic XML File
1 - As basic as I can get it, Java Script
4 - very small images (smilies)
The idea is that we use the XML to name those images in the image folder, load the XML through script, build our HTML IMG tags in script, and then insert them back into the HTML through the DOM.
*take a breath here*
NOW - I have ONLY TESTED THIS IN Internet Explorer 6.0, so please don't tell me it's not working in Netscape. I leave that functionality up to you to figure out (if it's not working); didn't seem to work in Mozilla, so ...
Questions? Comments? Fan mail?