Added xml endpoint and decide response by path for now