I'm trying to clear an XML DataSet that was populated as follow but it's not working:
DataSet ds = new DataSet();
ds.ReadXml("path to xml", XmlReadMode.InferSchema);
Here's what MSDN is saying:
"If the DataSet is bound to an XmlDataDocument, calling DataSet.Clear or DataTable.Clear raises the NotSupportedException. To avoid this situation, traverse each table, removing each row one at a time."
Does this apply to my case? If so, how can I do it?