I am currently attempting to use imglab to tag a dataset and used the following commands to create and xml files from a set of training images:
./imglab -c ha