Quote Originally Posted by Ram2Curious View Post
This is not fair Akki. Provide an opportunity for someone else to resolve the thread.


Also found that, there's no need of using a DataSet. Only DataTable is needed as it has both the ReadXML() and WriteXML() methods. Previously, I was thinking that, those methods were available only in a DataSet.

Another thing that I found is, when using WriteXML() method, we have to use a 2nd parameter called "XmlWriteMode.WriteSchema" to write the schema in the XML file. Otherwise, when we try to read this XML file(which we have created), VB would pop an error message saying it couldn't harness the schema.