In ActionScript, you can do something like this:
[Embed(source = "src/myfile.xml", mimeType = "application/octet-stream")]
private var xml : Class;
and it will embed your file to be used in code. How can i do something similar in Haxe?
Haxe allows you to provide external resources info for embedding in hxml.
You may refer to the doc.