Another way to do this is

  {content_type: :xml}.merge(opts)