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.

  1. 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.

  2. 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.

  3. 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.

  4. 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

From · ICS

iCalendar

iCalendar events and calendars.

Extensions
.ics .ical
MIME type
text/calendar
Kind
Text and data
To · XML

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.

terminal
$ cv convert report.ics report.xml
$ cv convert report.ics report.xml

Questions.What people ask about ICS to XML.

01OF 04

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.

More conversions.Other ways in and out of ICS and XML.