fixed bug with XmlBuilder not adding correct version to XML
removed %i usage for compatibility with Ruby 1.9