Thanks for the pointer, but I dont quite know what you mean.
I have two xml data conections, one for the mapping and another for the QdabraRules.
I have three rules currently set up for when the form is submitted, the first which assigns a name to the form if it is blank, another that checks if the filename is not blank, the third is ...