Z-SoftNet Developer Network Library www.zsoftnet.com

CalendarWriter.WriteXML Method 

Writes the XML calendar represenation to the output stream to xCal - XML iCalendar format ( .xml).

public void WriteXML(
   Calendar calendar,
   string output
);

Parameters

calendar
Calendar object to output.
output
Output stream to write to.

Remarks

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");
            	
            


See Also

CalendarWriter Class | ZsoftNet.iCalendar Namespace