added support for resource on xml and json set string