XmlFormView.XmlLocation Property

Gets or sets the URL of the form template's XML file.

Namespace:  Microsoft.Office.InfoPath.Server.Controls
Assembly:  Microsoft.Office.InfoPath.Server (in Microsoft.Office.InfoPath.Server.dll)

public string XmlLocation { get; set; }

Property Value

Type: System.String
The URL of the form template's XML file

This value can be set only when the EditingStatus of the form is not "Editing." Attempts to set the XmlLocation property when the form is currently being edited will result in an error.