Another option is to export the web part definition in the web part hosting to a .webpart file.
The content can be used as-is in an elements.xml file
Adding web parts to a web page programmatically:
Random outpourings of a software developer
Another option is to export the web part definition in the web part hosting to a .webpart file.
The content can be used as-is in an elements.xml file
Adding web parts to a web page programmatically: