How to set actions url if custom actions are set programmatically?

You only need & to replace & in any XML structure, but you don't need to use & in the code behind...