Skip to main content
A newer version of this page is available. .

TreeViewExtension.BindToXML(String, String) Method

Binds the TreeView to the XML file specified by its name and an XPath expression.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v18.2.dll

Declaration

public TreeViewExtension BindToXML(
    string fileName,
    string xPath
)

Parameters

Name Type Description
fileName String

A string specifying the file name.

xPath String

A string specifying the XPath expression.

Returns

Type Description
TreeViewExtension

An extension object.

Remarks

Note

The fileName parameter must refer to a physical file on the server, not a URL.


BindToXML(HttpContext.Current.Server.MapPath("~/App_Data/MyDataFile.xml"), "/Root/*")
See Also