• Thanks, Luis and Orlando, for the examples. I used FOR XML and also avoid entities by using TYPE. I also do concatenation into a variable where appropriate and I've never run into a problem. I'll be playing with the examples when I get to work on Monday.