XmlWebPart Class
The XmlWebPart class displays XML transformed on the server using XSL. The Web Part stores the content in a property or links to a source file.
Microsoft.SharePoint.WebPartPages.WebPart
Public Constructors
The following table shows the constructors of the XmlWebPart class and a brief description of each.
Name | Description |
---|---|
XmlWebPart | Initializes a new instance of the XmlWebPart class. |
Public Methods
The following table shows the public methods of the XmlWebPart class and a brief description of each.
Name | Description |
---|---|
GetToolParts | Determines which tool parts are displayed in the tool pane of the web-based Web Part design user interface, and the order in which they are displayed. |
LoadResource(String) | Overrides the Microsoft.SharePoint.WebPartPages.LoadResource method. |
ShouldSerializePartStorage | Indicates whether the PartStorage property should be persisted. |
ShouldSerializeXml | Indicates whether the Xml property should be persisted. |
ShouldSerializeXmlLink | Indicates whether the XmlLink property should be persisted. |
ShouldSerializeXsl | Indicates whether the Xsl property should be persisted. |
ShouldSerializeXslLink | Indicates whether the XslLink property should be persisted. |
Public Methods
The following table shows the protected methods of the XmlWebPart class and a brief description of each.
Name | Description |
---|---|
RenderWebPart(System.Web.UI.HtmlTextWriter) | Overrides the Microsoft.SharePoint.WebPartPages.WebPart.RenderWebPartmethod to implement rendering for this Web Part. |
Public Properties
The following table shows the properties of the XmlWebPart class, the data type of each property, and a brief description of each.
Name | Data Type | Description |
---|---|---|
PartStorage | String | Gets and sets data that is specific to this Web Part. |
Xml | System.Xml.XmlElement | Gets and sets the content for this Web Part. |
XmlLink | String | Gets and sets the URL that points to content for this Web Part. |
Xsl | System.Xml.XmlElement | Gets and sets the embedded XSL/T that is used to transform the Web Part content if an XslLink is not supplied. |
XslLink | String | Gets and sets the URL that points to the XSL/T that is used to transform the content for this Web Part. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread safe.
Remarks
This Web Part is used to represent existing structured data as XML and transform it using XSL on the server. It also displays content that can be edited by users with the appropriate permissions.
Requirements
Namespace: Microsoft.SharePoint.WebPartPages
Platforms: Windows Server 2003
Assembly: Windows SharePoint Services (in Microsoft.SharePoint.dll)
Security: Code Access Security