Show All

# initialXmlDocument Element

Contains a reference to the XML template file that is used for the creation of a new form based on the form template.

## Type

    xsd:complexType

## Structure

Name | Description
--- | ---
caption | (Required attribute) Defines the text string to be used as the name of the form in the Template Gallery and in the most recently used list.
customCategory | (Optional element) Specifies the category that the form template appears under in the Fill Out a Form task pane.
href | (Required attribute) Specifies the Uniform Resource Locator (URL) of the XML template file to be used when a user clicks Fill Out a Form on the File menu.

## Remarks

The initialXmlDocument element is a required element of the fileNew element.

## Example

The following is an example of the initialXmlDocument element:

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

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp