Xml::DocumentSource Property
Gets or sets the path to an XML document to display in the Xml control.
Assembly: System.Web (in System.Web.dll)
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 DocumentSource property is used to specify the path to an XML file (representing an XML document) to display in the control. You can use a relative or an absolute path. A relative path relates the location of the file to the location of the Web Forms page or user control, without specifying a complete path on the server. The path is relative to the location of the Web page. This makes it easier to move the entire site to another directory on the server without updating the path to the file in code. An absolute path provides the complete path, so moving the site to another directory requires updating the code.
| 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 |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.