How to generate Nested XML with XElement class

  • Thread starter Thread starter Sudip_inn
  • Start date Start date
S

Sudip_inn

Guest
Here i am giving a sample xml which i want to compose or build with XElement. how to do it?

<Nodes>
<Element Type="Sheet">Model1
<Element Type="Group">Consensus
<Element Type="LineItems">Net Revenue</Element>
<Element Type="LineItems">Cost of Revenue
<Element Type="BM">Gross Margin</Element>
<Element Type="BM">EBITDA Margin</Element>
</Element>
</Element>
<Element Type="Group">Segment Details
<Element Type="LineItems">Total Operating Expenses-GAAP</Element>
<Element Type="LineItems">EBITDA</Element>
</Element>
</Element>
<Element Type="Sheet">Model2
<Element Type="Group">Key Financials
<Element Type="LineItems">Net Income</Element>
<Element Type="LineItems">Cost of Revenue
</Element>
</Element>
</Element>
</Nodes>


thanks

Continue reading...
 
Back
Top