tmx is an OCaml library for reading data files from the 2D game map editor
The library aims for broad coverage of Tiled’s TMX file formats. It
provides an imperative context for loading TMX data files and a collection of
immutable types corresponding to TMX data structures.
tmx emulates the semantics of TMX data structures as they exist in the Tiled
desktop application, including proper application of custom
property inheritance and object templates. This allows
the attributes of game resources in OCaml to match exactly what is observed in
Check out the project page for more.