Thanks for the feedback.
My goal was to provide one way to do generate KML, but over time I might find a more elegant way of exploiting the FOR XML clause. After submitting the article, I realized the string handling was unnecessary.
Again, thanks for taking the time to try it out and make comments.
Robert