write the xml file form data table error

Jul 6 2010 2:37 AM

in my program i have one data table that name is
DataTable dtCustInfo = custInfoMaster.SelectCustomerByMobileForCAF();
when i want write xml file form this tabel i got the error  for what reasion it came
code:dtCustInfo.writeXml("d:\\mytext.xml");
what is the solution for this error the error is
 
Cannot serialize the DataTable. DataTable name is not set.

Answers (3)