ASP.NET 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
<asp:Xml DocumentSource="path" runat="server" />
Property | Description |
---|---|
path |
String value, specifying the location of the XML file. This property can be relative or absolute:
|
Example
The following example sets the DocumentSource of the Xml control:
<form runat="server"> <asp:Xml id="xml1" runat="server" DocumentSource="note.xml" /> </form>
The XML file used in examples and TIY is "note.xml".
Example
- Set XML Document Source for XML Control