0
votes

I want to go through all of my haxe classes and generate xml from the comments.

I see there is a built-in haxe command:

haxe -xml

However I don't know how to use it for my situation.

I want to go through all of the haxe classes in my directory (called framework) and output the xml. I don't know how to do this.

2

2 Answers

0
votes

From the documentation:

-xml <file>: generate XML types description of all input classes. (normaly used for documentation)

If you want the full project to be included, You can use this in combination with haxe --macro include('my.package') This forces the inclusion of all the files defined in a given package and its sub packages. See http://haxe.org/manual/macros_compiler

Hope this helps.

0
votes

Proper syntax:

haxe buildfile.hxml -xml outputfile.xml

also

haxe -xml outputfile.xml buildfile.hxml

you must have a valid build file for this to work.