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.WebControlsAssembly: 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)
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.
| Topic | Location |
|---|---|
| How to: Load XML Data in the XML Web Server Control | Building ASP .NET Web Applications |
| How to: Load XML Data in the XML Web Server Control | Building 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.
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.