need to generate an XML file from within infopath.
As it is a small amount, I've determined the best way would be to use the programming functionality in infopath 2003 that is javascript to create a text file and output the xml into it.
I have a button on Infopath 2003 that I need to trigger to do this. The empty onclick function exists ...