Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET XML DocumentSource Property

ASP.NET XML DocumentSource Property


XML Controls XML control


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 of the file relative to the current page location (e.g. "~/note.xml")
  • Absolute path: An absolute path (e.g. "C:xmlnote.xml")
  • |

    Example

    Example

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

    Demo Example »

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


    XML Controls XML control