#17: Support xml format in the rest api