Published: May 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:
xmlns Required Text. Represents the XML namespace of the schema. The namespace for this schema is:
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
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.
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="http://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>