Steve,
You might want to look into the XmlDocument class. I haven't really played with it, but I think it'll do what you're looking for. I was gonna play with it a bit before replying to you, but I thought I'd mention it first, so we can *both* play with it. <g>
Also, you might want to look at DataSet.WriteXML() ... I've used it to write files, but you might be able to tweak something to write to a string.
~~Bonnie