Respected Experts,
I had been using
DatasetMyDs.ReadXmlSchema( @"\Export\Tally.XSD");
and populate this data Tables and and the end
DataSetMyDs.WriteXml(FD.FileName)
it was all ok. but now i have to transfer Item Masters From SQL Tables To Popular Indian accounting software Tally whose Item Master and its associate table XML is attached here with
<ENVELOPE><HEADER><TALLYREQUEST>Import Data</TALLYREQUEST></HEADER><BODY><IMPORTDATA><REQUESTDESC><REPORTNAME>All Masters</REPORTNAME><STATICVARIABLES><SVCURRENTCOMPANY>Auto Corner 2015-2016</SVCURRENTCOMPANY></STATICVARIABLES></REQUESTDESC><REQUESTDATA><TALLYMESSAGE xmlns:UDF="TallyUDF"><UNIT NAME="Ltr" RESERVEDNAME=""><NAME>Ltr</NAME><ORIGINALSYMBOL>Liter</ORIGINALSYMBOL><ISSIMPLEUNIT>Yes</ISSIMPLEUNIT><DECIMALPLACES> 3</DECIMALPLACES></UNIT></TALLYMESSAGE><TALLYMESSAGE xmlns:UDF="TallyUDF"><UNIT NAME="No" RESERVEDNAME=""><NAME>No</NAME><ORIGINALSYMBOL>Number</ORIGINALSYMBOL><ISSIMPLEUNIT>Yes</ISSIMPLEUNIT></UNIT></TALLYMESSAGE><TALLYMESSAGE xmlns:UDF="TallyUDF"><CURRENCY NAME="Rs." RESERVEDNAME=""><MAILINGNAME>Indian Rupees</MAILINGNAME><EXPANDEDSYMBOL>Indian Rupees</EXPANDEDSYMBOL><DECIMALSYMBOL>paise</DECIMALSYMBOL><ORIGINALSYMBOL>Rs.</ORIGINALSYMBOL><ISSUFFIX>No</ISSUFFIX><HASSPACE>Yes</HASSPACE><INMILLIONS>No</INMILLIONS><DECIMALPLACES> 2</DECIMALPLACES><DECIMALPLACESFORPRINTING> 2</DECIMALPLACESFORPRINTING></CURRENCY></TALLYMESSAGE><TALLYMESSAGE xmlns:UDF="TallyUDF"><CURRENCY NAME="Rs." RESERVEDNAME=""><MAILINGNAME>Indian Rupees</MAILINGNAME><EXPANDEDSYMBOL>Indian Rupees</EXPANDEDSYMBOL><DECIMALSYMBOL>paise</DECIMALSYMBOL><ORIGINALSYMBOL>Rs.</ORIGINALSYMBOL><ISSUFFIX>No</ISSUFFIX><HASSPACE>Yes</HASSPACE><INMILLIONS>No</INMILLIONS><DECIMALPLACES> 2</DECIMALPLACES><DECIMALPLACESFORPRINTING> 2</DECIMALPLACESFORPRINTING></CURRENCY></TALLYMESSAGE><TALLYMESSAGE xmlns:UDF="TallyUDF"><GODOWN NAME="Main Location" RESERVEDNAME=""><PARENT/><JOBNAME/><HASNOSPACE>No</HASNOSPACE><HASNOSTOCK>No</HASNOSTOCK><LANGUAGENAME.LIST><NAME.LIST TYPE="String"><NAME>Main Location</NAME></NAME.LIST><LANGUAGEID> 1033</LANGUAGEID></LANGUAGENAME.LIST><SERIALNUMBERLIST.LIST> </SERIALNUMBERLIST.LIST></GODOWN></TALLYMESSAGE><TALLYMESSAGE xmlns:UDF="TallyUDF"><STOCKITEM NAME="M.S." RESERVEDNAME=""><PARENT/><CATEGORY/><TAXCLASSIFICATIONNAME/><COSTINGMETHOD>Avg. Cost</COSTINGMETHOD><VALUATIONMETHOD>Avg. Price</VALUATIONMETHOD><BASEUNITS>Ltr</BASEUNITS><ADDITIONALUNITS/><ISCOSTCENTRESON>No</ISCOSTCENTRESON><ISBATCHWISEON>No</ISBATCHWISEON><ISPERISHABLEON>No</ISPERISHABLEON><IGNOREPHYSICALDIFFERENCE>No</IGNOREPHYSICALDIFFERENCE><IGNORENEGATIVESTOCK>No</IGNORENEGATIVESTOCK><TREATSALESASMANUFACTURED>No</TREATSALESASMANUFACTURED><TREATPURCHASESASCONSUMED>No</TREATPURCHASESASCONSUMED><TREATREJECTSASSCRAP>No</TREATREJECTSASSCRAP><HASMFGDATE>No</HASMFGDATE><ALLOWUSEOFEXPIREDITEMS>No</ALLOWUSEOFEXPIREDITEMS><IGNOREBATCHES>No</IGNOREBATCHES><IGNOREGODOWNS>No</IGNOREGODOWNS><EXCLUDEJRNLFORVALUATION>No</EXCLUDEJRNLFORVALUATION><ISMRPINCLOFTAX>No</ISMRPINCLOFTAX><ISADDLTAXEXEMPT>No</ISADDLTAXEXEMPT><ISSUPPLEMENTRYDUTYON>No</ISSUPPLEMENTRYDUTYON><REORDERASHIGHER>No</REORDERASHIGHER><MINORDERASHIGHER>No</MINORDERASHIGHER><DENOMINATOR> 1</DENOMINATOR><RATEOFVAT>0</RATEOFVAT><LANGUAGENAME.LIST><NAME.LIST TYPE="String"><NAME>M.S.</NAME><NAME>2-1</NAME></NAME.LIST><LANGUAGEID> 1033</LANGUAGEID></LANGUAGENAME.LIST><ADDITIONALLEDGERS.LIST> </ADDITIONALLEDGERS.LIST><EXCISEITEMGODOWN.LIST><EXCISEBOM.LIST> </EXCISEBOM.LIST><EXCISEDUTIES.LIST> </EXCISEDUTIES.LIST></EXCISEITEMGODOWN.LIST></STOCKITEM></TALLYMESSAGE></REQUESTDATA></IMPORTDATA></BODY></ENVELOPE>
Tally accounting system does not have id concept it all depend on name of ledgers but they have provision for Alias for ledgers
so in above case For Item M.S.( motor Spirit i.e petrol) its SQL Table Have id as 2-1 i want to transfer both name and alias so i can not escape there schema.
what should be the way to serialize it. I tried Making XSD , XSD With XSD /d, XSD /C etc. but due to
<LANGUAGENAME.LIST><NAME.LIST TYPE="String">
Name appearing Twice It is getting Failed.
there are other parties who are writing them successfully.
what i would be missing in doing it can you please suggest how to do it ,
Thanks a lot.