Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Lists.UpdateContentTypesXmlDocument Method

Windows SharePoint Services 3
Adds or overwrites the specified XMLDocument element for all content types on the specified list.

Web Service: ListsWeb Reference: http://<Site>/_vti_bin/Lists.asmx

[SoapDocumentMethodAttribute("http://schemas.microsoft.com/sharepoint/soap/UpdateContentTypesXmlDocument", RequestNamespace="http://schemas.microsoft.com/sharepoint/soap/", ResponseNamespace="http://schemas.microsoft.com/sharepoint/soap/", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)] 
public XmlNode UpdateContentTypesXmlDocument (
	string listName,
	XmlNode newDocument



A string that represents the name of the list.


A string representing the XML document to replace the existing XML document.

Return Value

A string, in the following format, indicating that the method succeeded.
<Success xmlns="http://schemas.microsoft.com/sharepoint/soap/"/>

Windows SharePoint Services identifies the XML document to overwrite in the content type by matching the URI of the XML document passed in the newDocument parameter.

If the XML document does not exist in the content type, Windows SharePoint Services adds it to the content type.

You can use XMLDocument elements to store custom information in content type definitions. For more information, see Custom Information in Content Types.

Community Additions

© 2015 Microsoft