Xml::Document Property
NOTE: This API is now obsolete. The non-obsolete alternative is DocumentContent. The non-obsolete alternative is DocumentSource.
Gets or sets the System.Xml::XmlDocument to display in the Xml control.
Assembly: System.Web (in System.Web.dll)
[BrowsableAttribute(false)] [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); }
<asp:Xml Document="XmlDocument" />
Property Value
Type: System.Xml::XmlDocumentThe System.Xml::XmlDocument to display in the Xml control.
The Document property is obsolete. Alternative ways to specify the XML to display in the Xml control include the DocumentContent property and the DocumentSource property. For more information, see the class overview for 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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
.NET Framework
Supported in: 1.1, 1.0Obsolete (compiler warning) in 3.5
Obsolete (compiler warning) in 3.5 SP1
Obsolete (compiler warning) in 3.0
Obsolete (compiler warning) in 3.0 SP1
Obsolete (compiler warning) in 3.0 SP2
Obsolete (compiler warning) in 2.0
Obsolete (compiler warning) in 2.0 SP1
Obsolete (compiler warning) in 2.0 SP2