XML encoder

Enables XML output or both (JSON/XML) based on he Content-Type header.