Content Type Document Information Panel Schema in SharePoint Server 2010 (ECM)

Applies to: SharePoint Server 2010

This schema describes optional XML you can include in a content type as custom information. This XML node must be stored within an XMLDocument element in the content type definition. For more information, see Custom Information in Content Types.

The information about the document information panel for a content type is included in the content type definition as a custom schema. The schema is stored as part of the XML documents collection in the content type definition.

The schema has the following elements:

  • customXsn   The root element. The customXsn element has the following attribute:

  • xsnLocation   Required string. This element represents the URL or URN location of the XSN file for the custom document information panel. If a content type does not have a custom panel, this element is an empty string ("").

  • cached   Required Boolean. This element represents whether the Office client application should use the default, autogenerated document information panel, whether or not a custom document information panel has been specified. The default is "default form".

  • openByDefault   Required Boolean. This element represents whether the client application should always display the document information panel when the document is opened. The default is false.

  • xsnScope   Required Text. Reserved for internal use. This element represents the scope of the custom document information panel.

For documents in the Open XML Formats, the contents of this XMLDocument element are demoted into the document as a data store item in the customXml section. The data store item has the root element of customXsn.

For more information, see [DocumentPropertiesandContentTypes.]

When you create a custom document information panel for a content type, the next time you open the document, the information is demoted into it. If the document is currently checked out, this metadata is demoted into the document when it is checked into the document library.

Example

The following example specifies a custom document information panel, and specifies that the application should use the custom form instead of the autogenerated form, and always open the form when the document is opened.

<?mso-contentType?>
  <customXsn xmlns="https://schemas.microsoft.com/office/2006/metadata/customXsn">
    <xsnLocation>http://computerName/documentLibrary/Forms/Document/17192438b70d796ecustomXsn.xsn
    </xsnLocation>
    <cached>False</cached>
    <openByDefault>True</openByDefault>
    <xsnScope>http://computerName/documentLibrary</xsnScope>
  </customXsn>

See Also

Tasks

How to: Create a Custom Document Information Panel from InfoPath in SharePoint Server 2010 (ECM)

How to: Update a Document Information Panel for Content Type Changes in SharePoint Server 2010 (ECM)

Concepts

Document Information Panel Overview in SharePoint Server 2010 (ECM)

Document Information Panel and Document Properties in SharePoint Server 2010 (ECM)

Document Properties and Content Types in SharePoint Server 2010 (ECM)

Custom Document Information Panels in SharePoint Server 2010 (ECM)