dataset.writexml using dtd

J

judy

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
 
N

Nicholas Paldino [.NET/C# MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top