This will do it...
// StringWriter receives the output XML stream
StringWriter loWriter = new StringWriter();
// Note you have to write with Schema in order for XMLAdapter to be able
// to process the table.
ds.WriteXml( loWriter,XmlWriteMode.WriteSchema );
string lcXml = loWriter.ToString();
+++ RIck --
>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