Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Comments
KM Perumal 9-May-13 3:57am    
what output format u want??
Orcun Iyigun 9-May-13 4:06am    
Do you want your xml like the following:
-names
-name
John
-/name
-name
Petter
-/name
-name
Gavaskar
-/name
-/names
Give us a sample format so we can help you better?
crazie.coder 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

Quote:
,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.
 
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