Wrong XML file being used when I export bom in PDM

Hi all,

We are trying to change the XML format used to export a BOM in PDM. 

1) Create XML

2) Create XSL

3) Linked the variables to  XML

4) Create a template card

5) Create a template

6) Create an export rule

7) I have specified which rule it should use in the workflow

8)My issue is that when I  create an XML export via changing the status of the file, the resultant XML file in no way resembles my XML file.

I should be getting a blank file or least one that has only one item number. It seems to be pulling this format from somewhere and from what I can see its puling from BOM

Can anyone assist me with where I can define the XML used to for a particular rule?

Thank you in advance

SolidworksApi macros