Ok my first thought was to have the submit button look in my file where i have my users saving the xml file if they want to. But the submit has to be programmed if i wanted to add code. Correct?? So I went to the save button on the form. I have this
var myPathdelete = XDocument.DOM.selectSingleNode("/dfs:myFields/my:test");
myPathdelete = new ActiveXObject("Scripting.FileSystemObject");
XDocument.DeleteFile(myPathdelete);
XDocument.UI.Alert("Deleted");
BUt there is no DeleteFile in XDocument . So what else can i do to look in that folder , see any old xml and delete all files left in there? Thanks.