Edit

Share via


XPath.SetValue(XmlMap, String, Object, Object) Method

Definition

Maps the specified XPath object to a ListColumn object or Range collection. If the XPath object has previously been mapped to the ListColumn object or Range collection, the SetValue method sets the properties of the XPath object.

public void SetValue (Microsoft.Office.Interop.Excel.XmlMap Map, string XPath, object SelectionNamespace, object Repeating);
Public Sub SetValue (Map As XmlMap, XPath As String, Optional SelectionNamespace As Object, Optional Repeating As Object)

Parameters

Map
XmlMap

Required XmlMap. The schema map that contains information about the XPath object.

XPath
String

Required String. A valid XPath statement.

SelectionNamespace
Object

Optional Object. Specifies any namespace prefixes used in the XPath argument. This argument can be omitted if the XPath object doesn't contain any prefixes, or if the XPath object uses the Microsoft Excel prefixes.

Repeating
Object

Optional Boolean. Specifies whether the XPath object is to be bound to a column in an XML list, or mapped to a single cell. Set to True to bind the XPath object to a column in an XML list.

Remarks

XML features, except for saving files in the XML Spreadsheet format, are available only in Microsoft Office Professional Edition 2003 and Microsoft Office Excel 2003.

Applies to