Quantcast
Viewing all articles
Browse latest Browse all 32057

How to create spreadsheet from available XML data in c#?

 

Hi,
I have XML data in below format and i want to store XML data into Spreadsheet using OpenXML concept.
<Sales1xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ReportingCustomerId>7206489</ReportingCustomerId>
  <PlanPurchaseDatexsi:nil="true" />
  <SessionId>12345</SessionId>
<SalesPerson>
          <Id>0</Id>
          <SequentialId>0</SequentialId>
          <CreateDateTimexsi:nil="true" />
          <LastModifiedDateTimexsi:nil="true" />
          <Age>0</Age>
          <DateOfBirthxsi:nil="true" />
          <FirstName>Mangesh</FirstName>
          <LastName>Barmate</LastName>
          <BenefitAmount>0</BenefitAmount>
          <VolumeAmount>0</VolumeAmount>
          <ChildCount>0</ChildCount>
          <MemberRenewalRateAmountxsi:nil="true" />
          <MemberCurrentRateAmountxsi:nil="true" />
          <MemberCombinedRateAmountxsi:nil="true" />
          <DependentPersonCollection />
          <RiderRates />
          <SubsciberPersonGenKey>0</SubsciberPersonGenKey>
          <EnrolledPersonCount>0</EnrolledPersonCount>
          <DependentRatexsi:nil="true" />
          <RatePerThousandxsi:nil="true" />
</SalesPerson>

</Sales1>

I want to save this XML into spreadsheet and send an email attachement of that generated spreadsheet.

Please suggest me approach for achieving this.
Thanks!


Viewing all articles
Browse latest Browse all 32057

Trending Articles