write the xml file form data table error
                            
                         
                        
                     
                 
                
                    
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.