Share via


fileNew Element

Provides a reference to an .xml file containing sample data to be loaded when a user chooses to create a new form based on the form template.

Type

xsd:complexType

Structure

Name Description
initialXmlDocument (Required element) Contains a reference to the XML template file that is used for the creation of a new form based on the form template.

Remarks

The fileNew element is an optional element of the xDocumentClass element.

The fileNew element of the Microsoft Office InfoPath 2003 form definition (.xsf) file defines the name and location of an XML template file that is used when a user clicks Fill Out a Form on the File menu. The XML template file contains the sample data that is loaded when the user chooses to create a new form based on the form template.

Example

The following is an example of the fileNew element:

<xsf:fileNew>
   <xsf:initialXmlDocument
      caption="Travel Report"
      href="TravelReportTemplate.xml"/>
</xsf:fileNew>

Parent Objects | xDocumentClass Element

Child Objects | initialXmlDocument Element