0
Dear Experts,
I am trying To read the attached XSD File by
DataSet dds =newDataSet(); dds.ReadXmlSchema(@"c:\Temp\item.xsd");
it is giving error Column Name already belong to table
how this can be solved .
I want use this data set to add data and after that save Data set as XML
here is xsd file
<?xml version="1.0" encoding="utf-16"?><xs:schema xmlns:UDF="TallyUDF" attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="ENVELOPE"><xs:complexType><xs:sequence><xs:element name="HEADER"><xs:complexType><xs:sequence><xs:element name="TALLYREQUEST" type="xs:string" /></xs:sequence></xs:complexType></xs:element><xs:element name="BODY"><xs:complexType><xs:sequence><xs:element name="IMPORTDATA"><xs:complexType><xs:sequence><xs:element name="REQUESTDESC"><xs:complexType><xs:sequence><xs:element name="REPORTNAME" type="xs:string" /><xs:element name="STATICVARIABLES"><xs:complexType><xs:sequence><xs:element name="SVCURRENTCOMPANY" type="xs:string" /></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element><xs:element name="REQUESTDATA"><xs:complexType><xs:sequence><xs:element maxOccurs="unbounded" name="TALLYMESSAGE"><xs:complexType><xs:sequence><xs:element minOccurs="0" name="STOCKITEM"><xs:complexType><xs:sequence><xs:element name="PARENT" /><xs:element name="CATEGORY" /><xs:element name="TAXCLASSIFICATIONNAME" /><xs:element name="COSTINGMETHOD" type="xs:string" /><xs:element name="VALUATIONMETHOD" type="xs:string" /><xs:element name="BASEUNITS" type="xs:string" /><xs:element name="ADDITIONALUNITS" /><xs:element name="ISCOSTCENTRESON" type="xs:string" /><xs:element name="ISBATCHWISEON" type="xs:string" /><xs:element name="ISPERISHABLEON" type="xs:string" /><xs:element name="IGNOREPHYSICALDIFFERENCE" type="xs:string" /><xs:element name="IGNORENEGATIVESTOCK" type="xs:string" /><xs:element name="TREATSALESASMANUFACTURED" type="xs:string" /><xs:element name="TREATPURCHASESASCONSUMED" type="xs:string" /><xs:element name="TREATREJECTSASSCRAP" type="xs:string" /><xs:element name="HASMFGDATE" type="xs:string" /><xs:element name="ALLOWUSEOFEXPIREDITEMS" type="xs:string" /><xs:element name="IGNOREBATCHES" type="xs:string" /><xs:element name="IGNOREGODOWNS" type="xs:string" /><xs:element name="EXCLUDEJRNLFORVALUATION" type="xs:string" /><xs:element name="ISMRPINCLOFTAX" type="xs:string" /><xs:element name="ISADDLTAXEXEMPT" type="xs:string" /><xs:element name="ISSUPPLEMENTRYDUTYON" type="xs:string" /><xs:element name="REORDERASHIGHER" type="xs:string" /><xs:element name="MINORDERASHIGHER" type="xs:string" /><xs:element name="DENOMINATOR" type="xs:unsignedByte" /><xs:element name="RATEOFVAT" type="xs:unsignedByte" /><xs:element name="LANGUAGENAME.LIST"><xs:complexType><xs:sequence><xs:element name="NAME.LIST"><xs:complexType><xs:sequence><xs:element maxOccurs="unbounded" name="NAME" type="xs:string" /></xs:sequence><xs:attribute name="TYPE" type="xs:string" use="required" /></xs:complexType></xs:element><xs:element name="LANGUAGEID" type="xs:unsignedShort" /></xs:sequence></xs:complexType></xs:element><xs:element name="ADDITIONALLEDGERS.LIST" /><xs:element name="EXCISEITEMGODOWN.LIST"><xs:complexType><xs:sequence><xs:element name="EXCISEBOM.LIST" /><xs:element name="EXCISEDUTIES.LIST" /></xs:sequence></xs:complexType></xs:element></xs:sequence><xs:attribute name="NAME" type="xs:string" use="required" /><xs:attribute name="RESERVEDNAME" type="xs:string" use="required" /></xs:complexType></xs:element><xs:element minOccurs="0" name="GODOWN"><xs:complexType><xs:sequence><xs:element name="PARENT" /><xs:element name="JOBNAME" /><xs:element name="HASNOSPACE" type="xs:string" /><xs:element name="HASNOSTOCK" type="xs:string" /><xs:element name="LANGUAGENAME.LIST"><xs:complexType><xs:sequence><xs:element name="NAME.LIST"><xs:complexType><xs:sequence><xs:element name="NAME" type="xs:string" /></xs:sequence><xs:attribute name="TYPE" type="xs:string" use="required" /></xs:complexType></xs:element><xs:element name="LANGUAGEID" type="xs:unsignedShort" /></xs:sequence></xs:complexType></xs:element><xs:element name="SERIALNUMBERLIST.LIST" /></xs:sequence><xs:attribute name="NAME" type="xs:string" use="required" /><xs:attribute name="RESERVEDNAME" type="xs:string" use="required" /></xs:complexType></xs:element><xs:element minOccurs="0" name="CURRENCY"><xs:complexType><xs:sequence><xs:element name="MAILINGNAME" type="xs:string" /><xs:element name="EXPANDEDSYMBOL" type="xs:string" /><xs:element name="DECIMALSYMBOL" type="xs:string" /><xs:element name="ORIGINALSYMBOL" type="xs:string" /><xs:element name="ISSUFFIX" type="xs:string" /><xs:element name="HASSPACE" type="xs:string" /><xs:element name="INMILLIONS" type="xs:string" /><xs:element name="DECIMALPLACES" type="xs:unsignedByte" /><xs:element name="DECIMALPLACESFORPRINTING" type="xs:unsignedByte" /></xs:sequence><xs:attribute name="NAME" type="xs:string" use="required" /><xs:attribute name="RESERVEDNAME" type="xs:string" use="required" /></xs:complexType></xs:element><xs:element minOccurs="0" name="UNIT"><xs:complexType><xs:sequence><xs:element name="NAME" type="xs:string" /><xs:element name="ORIGINALSYMBOL" type="xs:string" /><xs:element name="ISSIMPLEUNIT" type="xs:string" /><xs:element minOccurs="0" name="DECIMALPLACES" type="xs:unsignedByte" /></xs:sequence><xs:attribute name="NAME" type="xs:string" use="required" /><xs:attribute name="RESERVEDNAME" type="xs:string" use="required" /></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element></xs:schema>