XML file creation Using XDocument
- by Pramodh
i've a list (List< string) "sampleList" which contains
Data1
Data2
Data3...
How to create an XML file using XDocument by iterating the items in the list in c sharp.
The file structure is like
<file>
<name="samplee"/>
<date=" "/>
<info>
<data value="Data1"/>
<data value="Data2"/>
<data value="Data3"/>
</info>
</file
please help me to do this