fork of https://github.com/oozcitak/xmlbuilder-js @0.4.2