Mix xml/json API: old API support.