I have 4 years of experience in developing solutions for SharePoint projects.
During this period I have worked on workflows , web parts , InfoPath forms , Timer Jobs etc.,
Currently working as a Software Developer in a Multinational company (Cognizant Technology Solutions)
My solutions approach for your requirement will be as follows :
• Create an InfoPath form template with required fields.
• Publish the form template to a SharePoint form library.
• Go to the SharePoint form library to which we have published the form template, fill out a new form, and save it in the form library.
• Click on the newly created form in the form library, select Send To > Download a Copy from the context menu, and save the form locally on disk.
• Go to the location where we have saved the form disk and open it in Notepad. InfoPath forms are XML files, so if we want to programmatically create an InfoPath form, we have to write code to programmatically generate the XML of the InfoPath form, which looks similar to the XML of the InfoPath form we have downloaded, and replace the values of fields in the form with the desired new values.
• Write C# code to both to generate the XML for your InfoPath form and to upload it to a SharePoint form library.