Maria,
What you want to do is actually load each dataset into an XmlDocument
instance. Once you have that, you can create a fourth document and then add
all of the other documents as children of the fourth document (the fourth
document would have one root node, from which the other three would insert
their nodes).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
(E-Mail Removed)
"judy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi!
>
> I want to write 3 datasets from different tables into a xml file. i
> thought that would work using a dtd file. But i can't find a solution
> for my problem.
>
> At the moment i can only write one dataset into an xml file: i do that
> the following way:
>
> DataSet ds = ThemeManager.getThemes(themes);
> FileStream myFs = new FileStream("C:/test.xml", FileMode.Create,
> FileAccess.Write);
> ds.WriteXml(myFs);
> myFs.Close();
>
> This works.
> I hope somebody can help me.
>
> Maria