Create class from xml file in c#.net

dydrildmili

New Member
i have a xml file with following structure,\[code\]<TestClass> <TestChildClass> <TestName Name="sample"> <Table Name="table1" IdentityColumnName="RollNo" IntColumn="Mark" CharColumn="Name" > <Table Name="table2" IdentityColumnName="RollNo" IntColumn="SubjectCode" CharColumn="Subject" ReferenceColumn ="RollNo" /> <Table Name="table3" IdentityColumnName="RollNo" IntColumn="Average" CharColumn="Subject" ReferenceColumn ="SubjectCode"/> </Table> <Table Name="table4" IdentityColumnName="RollNo" IntColumn="Rank" CharColumn="Name" /> </Table > </TestName > <TestChildClass> <TestClass>\[/code\]i have created a class for the above xml using XSD.EXE. But the thing is when i tried to initialize the new class then its throwing error like "The same table 'Table' cannot be the child table in two nested relations." How to solve this.Thanks ,Tanya
 
Back
Top