Hi @lcg_1111
If you use the PRO version, you can do it from “Custom Fields > Tools”. Just select the field group you want and then click “Download Export File”.
If you use the free version, you can go to “Custom Fields > Export” and then select the field group you want and then click “Export to XML”.
Don’t forget to share the PHP where you wrote the code too.
Thanks!