chiru ommi

chiru ommi

  • NA
  • 5
  • 6.8k

Please help in preparing xml file from another raw xml file using C#.net programmatically

Feb 13 2012 4:40 AM
Hi

Please help in preparing the xml dynamically ( programmatically) from another raw xml file( input file)

my raw xml file is as below

******************************************
<browse>
<efsName>JTEST5</efsName>
<icon>user_16.png</icon>
<folders>
<folder>
<folderName>Application</folderName>
<foldericon>files_16.png</foldericon>
<source>
<sourceName>Document Correspondence - gm22_1.gif</sourceName>
<sourceId>2011-11-24 03:48:14.677407O01</sourceId>
<key>5</key>
<sourceType>EFSDOC</sourceType>
<sourceIcon>document_16.png</sourceIcon>
</source>
</folder>
<folder>
<folderName>Approval Form</folderName>
<foldericon>files_16.png</foldericon>
<source>
<sourceName>Document tes - Index.JPG</sourceName>
<sourceId>2012-01-17 05:24:04.360768O01</sourceId>
<key>6</key>
<sourceType>EFSDOC</sourceType>
<sourceIcon>document_16.png</sourceIcon>
</source>
</folder>
</folders>
<businessArea>INSURANCE</businessArea>
<ownerField>FPCD</ownerField>
</browse>

***************************************

Now my new xml file is below (more this is need to be prepare programmaticlly using C#.net)

<browse>
<user text="JTEST5" icon="user_16.png">
<folder text="Application" icon="files_16.png">
<source text="Document Correspondence - gm22_1.gif" sourceID="2011-11-24 03:48:14.677407O01" key="5" sourceType="EFSDOC" icon="document_16.png"></source>
</folder>
<folder text="Approval Form" icon="files_16.png">
<source text="Document tes - Index.JPG " sourceId="2012-01-17 05:24:04.360768O01" key="6" sourceType="EFSDOC" icon="document_16.png"></source>
</folder>
</user>
</browse>

Hence please help out in this

Thanks in advance

Thanks
Chiranjeevi



Answers (2)