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 already, what code do I need to put into it to create a file in the location I determine and put content into that file.. Additionally, taking some data from the infopath form and using it in the text file would be great as well.
Any code and help is appreciated..
Ram.