def convert_to_xml_attributes(hash)
      result = {}
      hash.each do |k, v|
        key = k.to_s.gsub('_', '-').to_sym
        result[key] = v
      end
      result
    end
def convert_to_xml_attributes(hash)
      result = {}
      hash.each do |k, v|
        key = k.to_s.gsub('_', '-').to_sym
        result[key] = v
      end
      result
    end
Convert options for xml attributes

 @param [Hash<Symbol, Object>] hash the hash of symbols and objects for xml attributes
 @return [Hash<String, Object>] the options for xml attributes