Cannot change the DataSet name once the DataSet is mapped to a loaded XML document.

Aug 6 2008 11:11 PM

I get the following error:

"Cannot change the DataSet name once the DataSet is mapped to a loaded XML document. "

This is my code

DataSet ds = new DataSet();
XmlDataDocument xdd = new XmlDataDocument(ds);
String fileName = Resources.FILE_NAME;
ds.ReadXmlSchema(fileName);

 

Does anyone have any idea what I could have done wrong?


Answers (2)