Writes the XML calendar represenation to the output stream to xCal - XML iCalendar format ( .xml).
Here is a sample code on using this method.
using ZsoftNet.iCalendar;
...
ZsoftNet.iCalendar.Calendar oCalendar;
//Once calendar object is created, modifications are made to the data
//Persist the new updated object to a new file.
CalendarWriter calWriter = new CalendarWriter();
//Persist as xCal - XML iCalendar file ( .xml)
calWriter.WriteXML(oCalendar,"C:\CalFiles\MyEvents.xml");
CalendarWriter Class | ZsoftNet.iCalendar Namespace