Hi Jimmy,
I will try to explain the scenario and post the xml code below, We need to create a form in library programmtically, from a webpart page. Only the initial few values will be entered, but the form will be opened later in the browser and update.
I created some XMLDocument and used to update the newly copied file with the initial values (it is in the Program.txt, this refers the IAPInfoPathNewInstance.cs to update the xml)
I am able to add the values for the first time, but when the form is opened again the new updates are not reflected. I think some thing is wrong in the Form_Submit code.
Thanks in advance for your suggestion
Deepak