adding xml format support to the gateway