From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Railway Markup Language
RailML headr.png
Filename extension .railml, .railmlx
Developed by railML.org
Initial release 22 December 2005 (2005-12-22)
Latest release
(10 March 2016; 2 years ago (2016-03-10))
Type of format Railway exchange format
Extended from XML
Standard Industry standard
Open format? Yes, CC BY-NC-ND
Website www.railml.org

railML (Railway Markup Language) is an open, XML based data exchange format for data interoperability of railway applications.[1]


Advantage of a universal exchange format

The growing number of computer applications modeling different aspects of railway operations, with different operators developing separate solutions parallelly, bore a chronic difficulty of connecting different railway IT applications.[1] The exchange of data for operation concepts, slot management, simulation or infrastructure planning, etc. was possible either by hand or with a lot of special developed interfaces with loss of time and cost problems for railway companies.[2] If there are n applications that are supposed to exchange data, with a special interface for each pair of programs respectively, interfaces are required — only one, if n=2, but 10, if n=5 — increasing the complexity above average.[1]

This problem can be mitigated by means of Enterprise application integration[1] with a single, universal exchange format that is supported by all applications and meets the needs of all kinds of data exchange in the field of railway operation: The number of required interfaces decreases to n — one interface to the exchange format for each application respectively. railML tries to place at disposal an open and free, easy and handy, self-describing format close to existing standards.[2] The paradigm is to meet the demands of the data exchange processes of railways, industry and authorities rather than describing the complete railway system.[3]



The development of railML was initiated in early 2001 by the Fraunhofer-IVI (Dresden, Germany) and the ETH Zürich - IVT (Zurich, Switzerland).[4] railML is changed and adapted to the needs of railway infrastructure managers (IM's) and railway undertakings (RU's) within discussions.[2][5] The first stable version 1.0 was released in 2005 for productive usage.[3] Up to now the versions 1.0; 1.1; 2.0; 2.1; 2.2 and 2.3 were released for download and productive use. As of 2014, railML's version 3 (new topology model and other evolutions) is currently under development.[6] In 2015 a validator for railML schemas named railVIVID was released.

Working Principle[edit]

railML (railway mark-up language) is a common exchange format, which employs the systematic of XML for the description of rail-specific data. railML enables the exchange of railway data between internal and external railway applications. railML is developed within the so-called “railML consortium” from railML.org. It is an open source exchange format; the modelling language of railML is English. A free registration on railML is mandatory for the usage and download of railML schemes.

Applications can exchange data via railML either via exporting respectively importing railML files, or as a direct Inter-process communication via TCP/IP.[7]

Licensing and Pricing[edit]

The usage of railML is possible at no charge for the users, only consulting and certification for professional usage could be liable to pay costs for the software developer.[8]

Versions 0.x and 1.x were licensed under a proprietary license, where version 0.x was intended only for internal use and shared within the consortium.[9]

Version 2.0 to 2.2 used to be licensed with the Creative Commons licence CC-BY-NC-SA until 2013. Since 2013 all versions from 2.0 onward were offered parallelly either with a commercial licence or with a restricted CC-BY-NC-ND licence. The restrictions serve quality measures, e.g. by requiring applications to be certified to grant for smooth interoperability.[9]

The licence conditions for Version 3.x are not decided, but an ongoing use of the Creative Commons licence was already announced.

The Logo and the word railML are a registered as trademarks by the railML consortium at the EUIPO.[9]

Legal entity[edit]

Legal entity for the so-called railML consortium is the railML.org e.V. a registered non-profit association by German law (registration number VR 5750 at the local court in Dresden/Germany) since April 23, 2012.

railML schemes[edit]

railML is based on XML and sub-areas use other existing XML-schemes such as MathML and GML. It is composed of sub-schemes. Through version 2.3, three sub-schemes are in productive use:

  • infrastructure for the (priority topological) description of tracks and signalling equipment
  • rolling stock for the description of vehicles
  • timetable for the description of timetables

Additional sub-schemes are station facilities or crew rostering (on hold, currently no requirements from users) and interlocking (in development by active railML.org working group).


This sub-schema serves the exchange of detailed timetables. Particularly, the schema is designed for the following Information:[10]

  • Operating Periods: the days on which a train is operated
  • Train Parts: scheduling and routing information for trains, e.g. the Orient Express on the traject from Budapest to Beograd on Mondays.
  • Trains: a collection of train parts, adding up to the colloquial perspective, e.g. the Orient Express.
  • Rostering: Circulation plans for rolling stock, linked with Train Parts.


The focus of this sub-schema is the infrastructure of railway networks.[11] Important aspects are:

  • Network Topology
  • Coordinates
  • Geometry: track geometry (gradient, curve radius)
  • Railway infrastructure elements: inventory like balises and signals
  • Further located elements: abstract things that cannot be touched but located, like speed limits and track condition

Rolling stock[edit]

While the Infrastructure sub-schema is focused on immobile assets, Rolling stock describes assets circulating in the network.[12]

  • Vehicles
  • Formations: the combination of vehicles as a train

Code Example[edit]

Example for a time table formulated in railML[3]

 1 <?xml version="1.0" encoding="UTF-8"?>
 2 <railml xmlns:xsi=http://www.w3.org/2000/10/XMLSchema-instance xsi:noNamespaceSchemaLocation="timetable.xsd">
 3 	<timetable version=“1.1”>
 4 		<train trainID="RX 100.2" type="planned"  source="opentrack">
 5 			<timetableentries>
 6 				<entry posID="ZU" departure="06:08:00" type="begin"/>
 7 				<entry posID="ZWI" departure="06:10:30" type="pass"/>
 8 				<entry posID="ZOER" arrival="06:16:00" departure="06:17:00"
 9 							minStopTime="9" type="stop"/>
10 				<entry posID="WS" departure="06:21:00" type="pass"/>
11 				<entry posID="DUE" departure="06:23:00" type="pass"/>
12 				<entry posID="SCW" departure="06:27:00" type="pass"/>
13 				<entry posID="NAE" departure="06:29:00" type="pass"/>
14 				<entry posID="UST" arrival="06:34:30" type="stop"/>
15 			</timetableentries>
16 		</train>
17 	</timetable>
18 </railml>

Line 3 expresses that the employed railML-version is 1.1.

Line 4 bears the train code.

Lines 5 and 15 frame the itinerary with, in this case, 8 itinerary entries.

The itinerary entries in line 6 to 14 have arguments like position ID (e.g. a station), time of departure or arrival, and in line 9 an obligation to stop.


Version Release date[3] Supported until[9] Licence[9] Comment
Old version, no longer supported: 0.x 2002-2005 December 2005 No (internal usage only) beta version timetable
Old version, no longer supported: 1.0 December 2005 June 2013 proprietary First practical experience
Old version, no longer supported: 1.1 November 2007 June 2013 proprietary
Old version, no longer supported: 2.0 November 2009 March 2017 restricted CC-BY-ND 2.0
Old version, no longer supported: 2.1 July 2011 March 2017 restricted CC-BY-ND 2.0 Downwardly compatible with V2.0
Older version, yet still supported: 2.2 June 11, 2013[13] restricted CC-BY-NC-ND 3.0 Downwardly compatible with V2.1-V2.0
Current stable version: 2.3 March 10, 2016 restricted CC-BY-NC-ND 3.0 Predominant downward compatible with V2.2-V2.0
Future release: 2.4 Mid 2018 restricted CC-BY-NC-ND 3.0
Latest preview version of a future release: 3.1beta October 31, 2017[14] No (internal usage only) based on UIC's RailTopoModel V1.1
Future release: 3.1 Early 2018 restricted CC-BY-NC-ND,
but version not decided
based on UIC's RailTopoModel V1.1
Old version
Older version, still supported
Latest version
Latest preview version
Future release

Usage of railML data[edit]

The most employed usage of railML data is timetable data[4] for passenger information, duty planning for conductors and drivers and timetable simulation.

Computer programmes[edit]

Applications using railML include a lot of timetable related programmes like OpenTrack (interactive railway simulator[15]), FBS (planning software for railway operation[16]), Viriato (scheduling system[17]) and OpenTimeTable (real time analysis of network operation data[18]) as well as BIM related infrastructure planning software like VIS All 3D[19] or railway survey systems like GPSinfradat.[20]

A complete list of programmes with (certified) interfaces is available at railML's website of compatible applications.


railVIVID is an open source freeware tool provided by UIC and railML.org to validate railML files of version 2.x or higher and to show the content of railML files in some special views. This shall give also non-IT-experts an easy and handy access to railML data. Therefore, some sights of railway data can be shown, copied and printed with railVIVID:[21]

railVIVID is available via railML's website. There are binary versions for MS Windows and Java, also the source code was published in Autumn 2015 und EUPL licence.[22]

railML.org Initiative[edit]

The development of railML is driven by the railML.org – Initiative, a development partnership of independent companies and organizations and European railways. The participation on the development and semi-annual conferences to exchange experience and discuss basics is open. The continuous development work is mainly internet-based (German and English forums). The organisation of the discussions is managed by so-called railML Coordinators. The (free) membership of the railML.org Consortium is mandatory for the download and usage of railML schemes. Obtaining a commercial certification is required before any commercial or productive use of software interfaces for the format.[23]


Members of railML.org are currently:[24]

A complete and updated list is published at the website of railML.org community.


railML.org works in the ERIM (abbreviation for European Rail Infrastructure Modelling) project of the International Union of Railways (UIC) for the development of a common data model in the railway sector.[25] Also railML.org cooperates with Eurocontrol and European Union Agency for Railways.


  1. ^ a b c d [1], p. PA4, at Google Books
  2. ^ a b c "RailTopoModel and railML®" (PDF). uic.org. Retrieved 2016-01-26. 
  3. ^ a b c d "Daten für PSItraffic: Standardisiertes Datenmanagement mit railML® und dem UIC RailTopoModel" (pdf). psitrans.de. Retrieved 2015-10-20. [permanent dead link]
  4. ^ a b Nash, Andrew; Huerlimann, Daniel; Schuette, Joerg; Kolmorgen (Krauss), Vasco Paul (2004). RailML – A standard data interface for railroad applications (PDF). Dresden: Proc. of the 9th International Conference on Computer in Railways (Comprail IX), WIT Press, Southampton, United Kingdom. 
  5. ^ [2], p. PA5, at Google Books
  6. ^ "5th UIC RailTopoModel and railML® Conference" (PDF). railML. 2016-02-01. p. 29. 
  7. ^ [3], p. PA6, at Google Books
  8. ^ "Concept and Financial Matters". railML.org. 2017-05-29. Retrieved 2017-11-25. 
  9. ^ a b c d e "Licence - railML.org (EN)". railml.org. Retrieved 2016-01-26. 
  10. ^ "Timetable - railML.org (EN)". railml.org. Retrieved 2016-01-26. 
  11. ^ "Infrastructure - railML.org (EN)". railml.org. Retrieved 2016-01-26. 
  12. ^ "Rollingstock - railML.org (EN)". railml.org. Retrieved 2016-01-26. 
  13. ^ Susanne Wunsch, Vasco Paul Kolmorgen; et al. (18 September 2013). "News of railML common parts on 24th railML.org meeting" (PDF). The railML.org initiative. railML.org e.V.; Dresden/Germany. p. 6. Retrieved 21 May 2017. 
  14. ^ Augele, Vivian (2017-11-15). "Public Presentation of railML 3.1 during 32nd railML Conference". railML.org News. Retrieved 2017-11-25. 
  15. ^ "OpenTrack Railway Technology - Eisenbahnsimulation". opentrack.ch. Retrieved 2015-10-20. 
  16. ^ Christian Roessiger (15 September 2016). "railML Schnittstelle - Institut für Regional- und Fernverkehrsplanung" (in German). iRFP e.K.; Dresden/Germany. Retrieved 21 May 2017. 
  17. ^ "Software für die Eisenbahn". sma-partner.ch. Retrieved 2015-10-20. 
  18. ^ "OpenTimeTable". via-con.de. Retrieved 2015-10-20. 
  19. ^ "VIS-All® 3D- der einfache Weg in die 3D-Welt!". Software-Service John (in German). Retrieved May 21, 2017. 
  20. ^ "GPSinfradat". Retrieved May 21, 2017. 
  21. ^ "railVIVID - railML.org (EN)". railml.org. Retrieved 2016-01-26. 
  22. ^ SNCF Réseau and TU Dresden (April 28, 2015). "4th UIC RailTopoModel and railML Conference: Achievements" (PDF). 
  23. ^ "Certification - railML.org (EN)". www.railml.org. Retrieved 2017-02-22. 
  24. ^ "Partners - railML.org (EN)". railml.org. Retrieved 2016-01-26. 
  25. ^ "UIC e-news 362: The foundation for a Universal Infrastructure Data Exchange Format". November 30, 2014. 

External links[edit]