Evert Pot has a new post to his blog today looking at a handy script he's developed to convert data formatted in the CalDAV syntax and push it back out as XML.
ICalendar objects have properties, components (such as VEVENT, VTODO) and attributes. This is awfully familiar to XML. So instead of trying to come up with a complicated parser and object structure, I decided to just convert it to XML and use PHP's simplexml.
The post includes the code that does the conversion, an example of CalDAV formatted data and the XML that it would output to.