.HXML File Extension

.HXML File Extension

Haxe Project File

Developer Haxe Foundation
Popularity
3.5  |  2 Votes
Category Developer Files
Format Text

What is an HXML file?

An HXML file is a configuration file for a Haxe development project. It contains text the Haxe compiler uses to compile a project. HXML files define a project's included classes and output.

More Information
Screenshot of a .hxml file in Microsoft Visual Studio Code
HXML file open in Microsoft Visual Studio Code

Haxe is an open-source, general-purpose programming language used to create video games, web applications, mobile applications, and cross-platform desktop applications. Notably, Haxe is used in the HaxeFlixel game engine, which is an open-source game engine used to develop 2D games.

When developers create a Haxe project, they create an associated HXML file. The HXML file contains settings Haxe's compiler uses to compile the developer's project (translate it into a different programming language). In all cases, HXML files contain a list of classes to be compiled and output files to produce. HXML files may also contain additional configuration options, such as a specification that each class be compiled in its own output file (using the --each and --next commands), or that the compiler removes any dead code it finds during the compilation process (using the --dce command).

It is also possible to nest several HXML files for several projects within one overarching HXML file. This type of HXML file includes lines of text referencing other HXML files, instead of Haxe classes. Nesting XHML files makes it easier for developers to compile complex programs that require code from multiple Haxe projects, because the developers can run one HXML file instead of many separate files.

NOTE: The HXML format replaced the .HXPROJ format.

Common HXML Filenames

Build.hxml - The default name developers assign to most HXML files. This name describes the file's function (to build a Haxe project).

How to open an HXML file

You can open and edit an HXML file in any text or source code editor. Source code editors, such as Microsoft Visual Studio Code, provide tools that make editing HXML files easier.

To use an HXML file to compile a Haxe project, you must install Haxe and run your HXML file, by opening a terminal window, navigating to the directory that contains your file, and entering Haxe YourFileNameHere.hxml. Haxe will then produce the output your HXML file describes.

Open over 400 file formats with File Viewer Plus.Free Download

Programs that open HXML files

Updated September 1, 2021

Verified by FileInfo.com

The FileInfo.com team has independently researched the Haxe Project file format and Mac, Windows, and Linux apps listed on this page. Our goal is 100% accuracy and we only publish information about file types that we have verified.

If you would like to suggest any additions or updates to this page, please let us know.