badgerfish modification from http://ruchirawageesha.blogspot.com/2011/01/xml-to-badgerfish-converter-in.html
Merge https://github.com/dreamfighter/dreamfighter