ASP.NET XMLControl


Web Server ControlsWeb Server Control

Definition and Usage

The XML control is used to display XML documents or the results of XSL transformations.

Note:Set at least one attribute for the XML document, otherwise no XML document will be displayed.

You can also specify an XSLT document, which formats the XML document before it is written to the output stream. You can format the XML document by setting the Transform property or the TransformSource property.


Attributes

Attribute Description .NET
ClientID
Controls
Document Deprecated. Specifies the XML document using the System.Xml.XmlDocument object. 1.0
DocumentContent Specifies the XML string. 1.0
DocumentSource Specifies the path to the XML document displayed in the XML control. 1.0
EnableTheming
runat Specifies that the control is a server control. Must be set to "server". 1.0
SkinID
Transform Uses the System.Xml.Xsl.XslTransform object to format the XML document. 1.0
TransformArgumentList
TransformSource Specifies the path to the XSL transformation file.
XPathNavigator

Control Standard Attributes

AppRelativeTemplateSourceDirectory, BindingContainer, ClientID, Controls, EnableTheming, EnableViewState, ID, NamingContainer, Page, Parent, Site, TemplateControl, TemplateSourceDirectory, UniqueID, Visible

For a full description, please visitControl Standard Attributes。


Examples

XML
This example shows how to use the XML control to display the results of an XSL transformation.


Web Server ControlsWeb Server Control Other Extensions