Output as XML (C#)

Set up and configure output to XML from your reporting application.

Example

// code snippet starts

Sales data = new Sales("Columbus Arts", 75038, new DateTime());

//Generate XML data file:
System.Xml.Serialization.XmlSerializer xmlSerializer = new System.Xml.Serialization.XmlSerializer(data.GetType());

xmlSerializer.Serialize(new StreamWriter("output.xml"), data);


// code snippet ends

For further information, see the .NET documentation.