PC Review


Reply
Thread Tools Rate Thread

dataset.writexml using dtd

 
 
judy
Guest
Posts: n/a
 
      31st Jul 2003
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
 
Reply With Quote
 
 
 
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      31st Jul 2003
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



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataSet.WriteXml Rastko Soskic Microsoft ADO .NET 1 20th Sep 2006 11:48 AM
DataSet.WriteXml() Steve B. Microsoft Dot NET Framework 4 28th Apr 2006 09:35 AM
dataset.writeXml Christina Androne Microsoft C# .NET 2 4th Nov 2005 10:41 AM
Filling a Dataset and Dataset.WriteXML method.. Serdar C Microsoft C# .NET 3 31st Dec 2004 08:07 AM
DataSet.WriteXml John Lee Microsoft ADO .NET 3 11th Sep 2004 01:37 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:14 PM.