How to select between RXML and RHTML template at runtime?

Hi !

I have some actions which I’d like to serve using XML instead of HTML.
I have two action templates: action.rhtml and action.rxml. If I do
render :action => ‘action’, ActionPack automatically selects the RHTML
template.

Is there a programmatic way of selecting which template I’d like to use
?

Thanks !