The example here shows an XML snippet for copying a macro with its underlying table:
<dmCreate> ... database selection="unselected"> <name>database1</name> <table selection="included"> <name>test</name> <validate_row_count>all</validate_row_count> </table> </database> <macros> <macro selection="included"> <name>macro1</name> <database>database1</database> </macro> </macros> ... </dmCreate>