Convert ICS to XML
Turn ICS files into XML. Objects become elements inside one root element and every value becomes text, with characters a tag name cannot hold turned into underscores.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop ICS files on the dialor turn it to pick what to do
Calendar data as XML elements.Your events and calendars come out as one XML file with a single root element.
What you get
One XML file. The calendar content is written as elements inside one root element, and every value becomes text.
Objects become elements. A list repeats its element once for each item in it.
How names and values change
Characters that a tag name cannot hold are turned into underscores. Keys that start with @ become attributes. Where an attribute would hold a list or an object, it is written as JSON text. A key named #text becomes the element's own text.
What disappears
An empty list leaves no element behind, so it does not appear in the XML. A list of lists is flattened into one repeated element, so the inner grouping is lost.
Because every value is text, the XML does not tell numbers or dates apart from other words.
When it fails
A file that cannot be parsed stops the conversion with
input_corrupted. This happens when the ICS content is not readable as a calendar.
ICS and XML.What each format is.
The formats
iCalendar
iCalendar events and calendars.
- Extensions
- .ics .ical
- MIME type
- text
/calendar - Kind
- Text and data
XML
XML documents and data.
- Extensions
- .xml
- MIME type
- application
/xml - Kind
- Text and data
In your code.The same ICS to XML conversion through the API, for your app or your agent.
$ cv convert report.ics report.xml$ cv convert report.ics report.xmlQuestions.What people ask about ICS to XML.
No. Every value becomes text, so the XML holds no separate types.
They disappear. An empty list writes no element.
The file could not be parsed. The conversion stops there and writes no XML.
No. This conversion has no options. To combine calendars first, try merge ICS.