Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# XML
Hi, Actuvally i am storing a data in variables ,i want to diaply those data into xml file .how to do ?
plz help me
ex:stiring A="john"
string B="petter"
string C="gavaskar"

this above data i want to dispaly in xml how to do?help me
Posted 8-May-13 22:31pm
KM Perumal at 9-May-13 3:57am
what output format u want??
Orcun Iyigun at 9-May-13 4:06am
Do you want your xml like the following:
Give us a sample format so we can help you better?
Juhi Paunikar at 9-May-13 6:17am
Create datatable of your string data then you can easily convert it in to xml using writexml method.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

,i want to diaply those data into xml file
I assume you meant: "I want to store them into a XML file".
It is very easy to create yourself an a XML file, directly using its Write method. Or you may follow a more 'sophisticated' approach using the XmlSerializer[^] class.

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

  Print Answers RSS
0 Peter Leow 293
1 Kornfeld Eliyahu Peter 220
2 Sergey Alexandrovich Kryukov 162
3 Maciej Los 160
4 OriginalGriff 153
0 OriginalGriff 383
1 Peter Leow 318
2 Kornfeld Eliyahu Peter 260
3 Maciej Los 230
4 Sergey Alexandrovich Kryukov 212

Advertise | Privacy | Mobile
Web01 | 2.8.150301.1 | Last Updated 9 May 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100