I had a place class define as follow:
public class place
{
public string placeID { get; set; }
public string placeCatID { get; set; }
public string placeName { get; set; }
}
And the data store in a list call placelist
List<place> placelist = new List<place>();
Can guide me how to convert the placelist to a string or export it and save it into an XML file format as follow:
<place>
<pID>0001</pID>
<pCatID>C1</pID>
<pName>Location 1</pName>
</place>
<place>
<pID>0002</pID>
<pCatID>C1</pID>
<pName>Location 2</pName>
</place>
Language using is C#
Thanks.
In short, following options are availiable: