# views Element

Defines all of the views that have been implemented in a Microsoft Office InfoPath 2003 form.

## Type

    xsd:complexType

## Structure

Name | Description
--- | ---
default | (Optional attribute) Specifies the name of the view chosen to be the default view.
view | (Required element) Contains information about an InfoPath view.

## Remarks

The views element is a required element of the xDocumentClass element.

## Example

The following is an example of the views element:

    <xsf:views default="View">
       <xsf:view name="View" caption="View">
          <xsf:mainpane transform="view1.xsl"></xsf:mainpane>
          ...
       </xsf:view>
    </xsf:views>

©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