Sometimes InfoPath doesn’t allow you to rename your main data source so you are stuck with a name that doesn’t necessarily match with the function of the form. This is very common for those of us that like to use Microsoft’s InfoPath templates as a head start. For example, a form designed based upon an InfoPath sample may include the "expenseReport" name. This is quite annoying especially when you need to compile the datasource with the "xsd /c" command and the output classname is less than helpful.
Below is the example of a form data source that was created using Microsoft’s “Expense Report” example form.
How to rename the your data source
