class Grape::Formatter::Xml

def self.call(object, _env)

def self.call(object, _env)
  return object.to_xml if object.respond_to?(:to_xml)
  raise Grape::Exceptions::InvalidFormatter.new(object.class, 'xml')
end