Share via


XmlDocuments Element (ContentType)

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Contains a collection of XmlDocument Element (ContentType) elements.

<XmlDocuments>
</XmlDocuments>

Attributes

Attribute

Description

None

Child Elements

XmlDocument Element (ContentType)

Parent Elements

ContentType Element (ContentType)

Occurrences

Minimum: 0

Maximum: 1

Remarks

The XmlDocuments element contains a collection of XmlDocument elements.

You can include custom information in content type definitions by adding special XML nodes. These XML nodes are represented by the XmlDocument element in the content type definition and can be accessed programmatically through the object model. A content type can include any number of XmlDocument elements. The contents of each XmlDocument element can conform to any given schema; they only need to be valid XML.

For more information about using XmlDocument elements to encapsulate custom information within your content type, see Custom Information in Content Types.

Example

The following example shows an XmlDocuments element that contains an XmlDocument element containing custom information that specifies which form templates to use in displaying this content type.

For more information on the actual information contained in the XmlDocument element, see FormTemplates Schema Overview.

<XmlDocuments>
  <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms">
    <FormTemplates xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms">
      <Display>DocumentLibraryForm</Display>
      <Edit>DocumentLibraryForm</Edit>
      <New>DocumentLibraryForm</New>
    </FormTemplates>
  </XmlDocument>
</XmlDocuments>

See Also

Concepts

Content Type Definition Schema

Custom Information in Content Types

Other Resources

Content Types