You can get the XPath for any field in data source by right-clicking it in the task pane in InfoPath and selecting Copy XPath from the context menu. In order to get the namespace for the form, select Properties from the same menu and click the Details tab on the Properties dialog

On the Data Source task pane, right-click field1 and select Copy XPath from the context menu.
 

Advertisements