Given the following table data model in Adobe Campaign
I have developed the following script, which is a mix of javascript, xml, e4x (used by adobe campaign). The script