added support for xml type