Contact us
View as Markdown
Ask AI

Open this page in an AI assistant with a ready-made prompt.

Opens a third-party service and shares a pre-filled prompt containing this public page URL, its product documentation URL and /llms.txt. No VirtoSoftware account or tenant data is included. Provider terms and privacy policies apply. Verify answers against the linked documentation.

OpenAI terms · OpenAI privacy policy · Anthropic terms · Anthropic privacy policy

XML file

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

The values below fit this file:

<events>
  <event>
    <title>Audit visit</title>
    <location>Atrium</location>
    <start>2026-12-02T13:00:00</start>
    <end>2026-12-02T15:00:00</end>
    <allday>false</allday>
    <info>Visit of the auditors</info>
    <category>Audit</category>
  </event>
</events>
FieldRequiredWhat to enterIf not set
Data source name, the two colorsYesSee The editor of a data source.—
XML file addressYesAn 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)YesThe event nodes: /events/event. The other expressions are relative to an event node.Save is not available.
Title (XPath)Notitle, or an attribute such as @name.“(no title)”.
Location (XPath)NolocationNo location.
Start date (XPath)Yesstart. 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)NoendThe event lasts until its start; an end before the start is set to the start.
All day (XPath)Noallday: true/false or 1/0.An event from midnight to midnight is an all-day event.
Description (XPath)NoinfoNo description.
NamespacesNoThe 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 UTCNoOtherwise 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, 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 do not apply.

What the calendar can do

A calendar with the events of an XML file

  • 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 addressMessage
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.

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.

Updated on November 27, 2026