Xml::Document Property

 
obsoleteCodeEntityP:System.Web.UI.WebControls.Xml.DocumentContentobsoleteCodeEntityP:System.Web.UI.WebControls.Xml.DocumentSource Note: This API 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)

public:
[BrowsableAttribute(false)]
[ObsoleteAttribute("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")]
property XmlDocument^ Document {
	XmlDocument^ get();
	void set(XmlDocument^ value);
}

Property Value

Type: System.Xml::XmlDocument^

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

The Document property is obsolete. To specify the XML that will be displayed in the Xml control, use the DocumentContent property or the DocumentSource property. For more information about these alternatives, 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.

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.

.NET Framework
Available since 1.1
Return to top
Show: