Programmatically creating Xml from DataBase Table

Oct 25 2006 8:12 PM

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