I have to dynamically generate XML file using c#.

The problem I have is that the XML file is provided with Property "**Build Action**" as "**Content**".

I would like to change to "**Embedded Resource**" from "**Content**" in dynamically.

Does anyone know of this,please apply some basic XML formatting programmatically in C#?

Thanks in advance.