Xml.Document Property
.NET Framework 3.0
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)
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.
| 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.
Community Additions
ADD
Show: