Sorry for the confusion, I was working off very little sleep when I wrote out the original post.
What I needed to do is pipe this line from my script into an output file. The problem is that echo removes the quotes in the process.
However, the printf command worked perfectly, thanks much for the info.
printf '<img src="'$i.jpg'" caption="'$i'" link="'http://zome.com/shopping.htm'" />\n' >>out /r >> $WHOME/images.xml
Regards,
Lou