add support for xml format