XML file creation Using XDocument

Posted by Pramodh on Stack Overflow See other posts from Stack Overflow or by Pramodh
Published on 2010-06-01T08:31:37Z Indexed on 2010/06/01 8:33 UTC
Read the original article Hit count: 231

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about c#

Related posts about Xml