PC Review


Reply
Thread Tools Rate Thread

Can Recovery with XmlRead

 
 
ad
Guest
Posts: n/a
 
      9th Nov 2005
I test the XmlWrite/XmlRead from MemoryStrem, my codes is:
\
DataSet ds = Will.DM.ExecuteDataset("Select * from Customer);
MemoryStream msOri = new MemoryStream();
ds.WriteXml(msOri);

DataSet ds2 = new DataSet();
ds2.ReadXml(msOri);

It compiled ok, but when it run fail at the last line: ds.WriteXml(msOri);
Ther error message is
System.Xml.XmlException: Root element is missing.

Why?


 
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
Re: How to creat recovery partition with recovery image in vista to restore the system John Galt Windows Vista Installation 0 24th Sep 2009 08:28 PM
Re: How to creat recovery partition with recovery image in vista to restore the system Al Windows Vista Installation 0 23rd Sep 2009 08:56 PM
Re: How to creat recovery partition with recovery image in vista to restore the system Al Windows Vista Installation 0 23rd Sep 2009 08:40 PM
Re: How to creat recovery partition with recovery image in vista to restore the system Rick Rogers Windows Vista Installation 0 23rd Sep 2009 11:13 AM
Self-referencing elements in XMLREAD =?Utf-8?B?RG91ZyBHYXVsdA==?= Microsoft ADO .NET 0 9th Dec 2005 03:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:40 AM.