Import XML Recipe Group

Import XML Recipe Group

Hi,
I need to import a recipe that was exported in XML from runtime.
This works using the control element button named "XML Import" in a recipe page, but fails if I use the code.
I tried both creating  a zenon function and the starting it usign zenOn.IRtFunction interface and working directly in the code with zenOn.IRGMRecipeGroups, but with no luck.

Can you please tell me which is the correct way to import a recipe group recipe using c# code?

Thank you.