Name

Xml

Synopsis

The Xml control is used to display an XML document on your Web Forms page. To specify the XML document, set the Document property to a System.Xml.XmlDocument object, set the DocumentContent property to a string containing XML content, or set the DocumentSource property with a string specifying a filename. If you set more than one property, the most recent one will take effect.

Optionally, you can specify an XSL Transform document, which will format the XML document before it is displayed. To specify an XSL Transform document, set the Transform property to a System.Xml.Xsl.XslTransform object or set the TransformSource property with a string specifying a filename for the XSL file.

Public Class Xml : Inherits System.Web.UI.Control
' Public Constructors
   Public Sub New() 
' Public Instance Properties
   Public Property Document As XmlDocument  
   Public Property DocumentContent As String  
   Public Property DocumentSource As String  
   Public Property Transform As XslTransform  
   Public Property TransformArgumentList As XsltArgumentList  
   Public Property TransformSource As String  
' Protected Instance Methods
   Overrides Protected Sub AddParsedSubObject(
        ByVal obj As Object) 
   Overrides Protected Sub Render(
        ByVal output As System.Web.UI.HtmlTextWriter) 
End Class

Hierarchy

System.Object System.Web.UI.Control(System.ComponentModel.IComponent, System.IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor) Xml

Get ASP.NET in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.