2
Answers

Programmatically creating Xml from DataBase Table

Sanjeev Shrestha

Sanjeev Shrestha

18y
2.5k
1

 

Hi,

First, I havee a table and I have to create xml programmatically using C#.  And secondly,

Please let me know, How can I create xml file of other tables, if the tablename is passed as a parameter in the method using loops.
For example:
public void Parse( string Product)
{
   XmlNode xmlnode = null;

  XmlDocument doc = new XmlDocument();
  ???????????
}

How do I do that?

Thank you

Answers (2)