Click here to Skip to main content
15,901,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please help on how to generate this xml format using linq and the data is come from dataset...

This is the sample format that i need.
Please take note the "variable" and "value" is came from dataset column

<root>
<info>
<variable>test
<value>myvalue



Please help me guys ineed this kind of format thank you in advance

What I have tried:

Please help on how to generate this xml format using linq and the data is come from dataset...

This is the sample format that i need.
Please take note the "variable" and "value" is came from dataset column 

<root>
<info>
<variable>test</variable>
<value>myvalue</value>



Please help me guys ineed this kind of format thank you in advance
Posted
Updated 27-Jul-17 23:24pm
v2

This should help get you started: LINQ to XML - CodeProject[^]

This may also be of interest to you: Code for Creating xml file from a Dataset in .net | AuthorCode[^]
 
Share this answer
 
v2
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900