Easy Tutorial
❮ Mvc Publish Aspnet Controls ❯

ASP.NET XML DocumentSource Property



Definition and Usage

The DocumentSource property is used to set or return the path of the XML document displayed in the Xml control.

Syntax

Property Description
path A string value that specifies the location of the XML file. This property can be a relative or absolute path: Relative path: The path relative to the current page location (e.g., "~/note.xml")<br>Absolute path: The absolute path (e.g., "C:xmlnote.xml")

Example

Example

The following example sets the XML document to be used by the Xml control:

The XML file used in this example is "note.xml".


❮ Mvc Publish Aspnet Controls ❯