I assume that you use PHP.
1) functiondata will return base64 string which you can convert to binary with following funciton
PHP: base64_decode - Manual
2) save binary file with
PHP: fwrite - Manual
3) extract binary file with winzip or similar program. You should get xml file...