Xml.Document Property

NOTE: This property is now obsolete.

Gets or sets the System.Xml.XmlDocument to display in the Xml control.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

[ObsoleteAttribute(L"The recommended alternative is the XPathNavigator property. Create a System.Xml.XPath.XPathDocument and call CreateNavigator() to create an XPathNavigator. http://go.microsoft.com/fwlink/?linkid=14202")] 
public:
property XmlDocument^ Document {
	XmlDocument^ get ();
	void set (XmlDocument^ value);
}
/** @property */
public XmlDocument get_Document ()

/** @property */
public void set_Document (XmlDocument value)

public function get Document () : XmlDocument

public function set Document (value : XmlDocument)

Not applicable.

Property Value

The System.Xml.XmlDocument to display in the Xml control.

The XML document to display in the Xml control is specified in one of three ways. You can specify a System.Xml.XmlDocument object, an XML string, or an XML file by setting the appropriate property. The Document property is used to specify a System.Xml.XmlDocument (representing an XML document) to display in the control.

TopicLocation
How to: Load XML Data in the XML Web Server ControlBuilding ASP .NET Web Applications
How to: Load XML Data in the XML Web Server ControlBuilding ASP .NET Web Applications
How to: Add XML Web Server Controls to a Web Forms Page (Visual Studio)Building ASP .NET Web Applications in Visual Studio

The following code example shows how to create XmlDocument and XslTransform objects from a sample XML file and an XSL Transformation style sheet. The objects are then used by the XML control to display the XML document.

No code example is currently available or this language may not be supported.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 1.0, 1.1, 2.0
Obsolete (compiler warning) in 3.0

Community Additions

ADD
Show: