XmlDocuments 要素 (ContentType)

適用対象: SharePoint 2016 |SharePoint Foundation 2013 |SharePoint Online |SharePoint Server 2013

XmlDocument 要素のコレクションが含まれます。

定義

<XmlDocuments>
</XmlDocuments>

要素と属性

以下のセクションで、属性、子要素、親要素について説明します。

属性

属性

説明

**なし**

子要素

Xmldocument

親要素

ContentType

Occurrences

最小 : 0

最大: 1

注釈

XmlDocuments 要素には、XmlDocument 要素のコレクションが含まれます。

特殊な XML ノードを追加することにより、コンテンツ タイプ定義にユーザー設定情報を含めることができます。 このような XML ノードは、コンテンツ タイプ定義では XmlDocument 要素で表され、オブジェクト モデルを介してプログラムでアクセスできます。 コンテンツ タイプには、任意の数の XmlDocument 要素を含めることができます。 それぞれの XmlDocument 要素のコンテンツは、有効な XML でさえあれば、任意のスキーマに準拠することができます。

XmlDocument 要素を使用してユーザー設定情報をコンテンツ タイプにカプセル化することの詳細については、「Custom Information in Content Types」を参照してください。

次の例は、このコンテンツ タイプの表示にどのフォーム テンプレートを使用するかを指定するユーザー設定情報を含んだ、XmlDocument 要素が含まれる XmlDocuments 要素を示しています。

XmlDocument 要素に含まれる実際の情報の詳細については、「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>

関連項目