# XML file Source: [https://docs.virtosoftware.com/docs/virto-calendar-web-part/virto-calendar-10/calendar-configuration/data-sources/xml-file/](https://docs.virtosoftware.com/docs/virto-calendar-web-part/virto-calendar-10/calendar-configuration/data-sources/xml-file/) Product: Virto Calendar On-Premises Updated: 2026-11-27 ## What it is for and what you need The **XML file** source shows events from an XML file: exports of other systems, schedules, any XML with events. You describe the structure of the file with XPath expressions. You need an XML file at an http or https address: a file in a library of a site of this farm, read with the permissions of the user who opens the calendar, or a public address, read anonymously. ## Set it up Open the tab **Data sources** of the settings page, click the icon with a plus and choose **XML file**. The panel has the tabs **General**, **Color code** and **Tooltip**. ![The editor of an XML file data source with the file address and the XPath expressions](https://img-docs.virtosoftware.com/wp-content/uploads/2026/11/calendar-10-ds-xml-general.png) The values below fit this file: ```xml Audit visit Atrium 2026-12-02T13:00:00 2026-12-02T15:00:00 false Visit of the auditors Audit ``` | Field | Required | What to enter | If not set | |---|---|---|---| | **Data source name**, the two colors | Yes | See [The editor of a data source](https://docs.virtosoftware.com/docs/virto-calendar-web-part/virto-calendar-10/calendar-configuration/data-sources/index.md#the-editor-of-a-data-source). | — | | **XML file address** | Yes | An absolute http or https address, for example https://portal.contoso.com/sites/hr/Shared%20Documents/events.xml. A file of this farm is read with the permissions of the user, other addresses anonymously. | — | | **Events (XPath)** | Yes | The event nodes: /events/event. The other expressions are relative to an event node. | **Save** is not available. | | **Title (XPath)** | No | title, or an attribute such as @name. | "(no title)". | | **Location (XPath)** | No | location | No location. | | **Start date (XPath)** | Yes | start. ISO 8601 is recommended: 2026-11-09T10:00:00 or 2026-11-09T10:00:00Z. | Events without a readable start are skipped. | | **End date (XPath)** | No | end | The event lasts until its start; an end before the start is set to the start. | | **All day (XPath)** | No | allday: true/false or 1/0. | An event from midnight to midnight is an all-day event. | | **Description (XPath)** | No | info | No description. | | **Namespaces** | No | The prefixes used in the expressions, one "prefix uri" per line, for example prefix http://namespace.uri. | Needed only when the XML has namespaces. | | **Dates without a time zone are in UTC** | No | Otherwise these dates are in the time zone of the SharePoint site; dates with an offset or Z are always converted. | Off. | **Preview** reads the file: "Reading the file...", then a green bar "{N} events found." with the first five events (date and title). "No events found, check the expressions." means that the expressions find nothing; "Cannot read the file." or a [short reason](https://docs.virtosoftware.com/docs/virto-calendar-web-part/virto-calendar-10/calendar-configuration/data-sources/index.md#when-a-remote-system-fails), that the file could not be read. Check the expressions with **Preview** before saving. Dates can be ISO 8601 with or without a time zone, RFC 1123, or in the format of the regional settings of the site. On **Color code**, **Color code value (XPath)** (for example category, relative to an event node) and **Reload values** read the values from the file; enter the file address and the events expression on **General** first. On **Tooltip**, **Tooltip values (XPath)** takes one expression per line, relative to an event node, and **Show the node names in the tooltip** (on by default) puts the name of the node before each value. Click **Save**. ## Authentication The source has no authentication. A file on a site of this farm is read as the user who opens the calendar: a user who may not read it sees no events of the source. Other addresses are read anonymously; addresses that need a password are not supported. The [approved servers](https://docs.virtosoftware.com/docs/virto-calendar-web-part/virto-calendar-10/calendar-configuration/data-sources/index.md#windows-authentication-and-approved-servers) do not apply. ## What the calendar can do ![A calendar with the events of an XML file](https://img-docs.virtosoftware.com/wp-content/uploads/2026/11/calendar-10-view-xml.png) - Read only: events cannot be changed, deleted or moved; their tooltip has no **Edit** and **Delete**. - One node of the file is one event; there are no recurring events. - All-day and multi-day events, by **All day (XPath)** or by the midnight rule. - The tooltip shows Location, Description and the values of the **Tooltip** expressions. - Colors by the value of the **Color code** expression. - Up to 5000 event nodes per file. A file at an outside address is downloaded at most once every 10 minutes, so its changes reach the calendar later; a file of the farm is read at every request. - No attachments or attendees. A DTD in the file is not allowed, and outside resources named in the file are not read. ## Limits and common errors | Address in XML file address | Message | |---|---| | http://127.0.0.1/a.xml or http://169.254.169.254/a.xml | "This address is not allowed." | | A name that is not in DNS | "The server {server} was not found." with the Correlation ID. | | A file of this farm that does not exist or cannot be opened | "The XML file is not found or you have no access to it." | Other messages: "XML file address must be an absolute http or https address."; "Items and start date expressions are required."; "The answer of the remote server is larger than 25 MB and was not read."; "The answer of {server} is not in the expected format." (the file is not XML); for outside addresses, also the other [short reasons](https://docs.virtosoftware.com/docs/virto-calendar-web-part/virto-calendar-10/calendar-configuration/data-sources/index.md#when-a-remote-system-fails). Check that an outside address opens without a password, or that the users may read a file of the farm; that the XPath expressions are relative to the event node; that **Namespaces** is filled when the expressions use prefixes; and the date format.