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