0
Answer

XML Error in Asp.Net

Nitin Bhardwaj

Nitin Bhardwaj

10y
890
1

I am trying to read XML file by dataset but getting error(""Cannot add a nested relation or an element column to a table containing a SimpleContent column."") . 

Example:

<?xml version='1.0' encoding='utf-8' ?>
<Employees>
   <Name>
     <EmployeeName>
     ABCD 
     </EmployeeName>
   </Name>
   <Details>
    <ID>1</Details>
    <FullDetails>
       <FirstName>John</FirstName>
       <LastName>Qwerty</LastName>
    </FullDetails>    
   </Details>
</Employees>
 ds = new DataSet();
 ds.ReadXml(Server.MapPath(xmlPath.ToString() + "/Result.xml"));
Please tell me