How to use the same params in respond_to for some formats?

Hello,

I want to make an API in XML and JSON (maybe more), and I want most of
the time use the same parameters for the to_xml and the to_json at least
(same :include, :only, :except, :methods).
What is the best way to do that?

Thank you,
Camille Roux