XmlMap Property

Microsoft Office Web Components Visual Basic

XmlMap Property

You use the XmlMap property to return an XmlMap object representing the XML schema map associated with an XmlDataBinding object. Returns an XmlMap object. Read-only.

expression .XmlMap

expression    Required. An expression that returns an XmlDataBinding object.

Remarks

You can use the MapData property of the XmlMap object to specify or determine the mapping information for the data source specified in the XmlDataBinding object.

Example

The following example uses the XmlMap property to return the schema map associated with a binding.

    
Dim objBindings
Dim objBinding
Dim strMapInfo

Set objBindings = Spreadsheet1.ActiveWorkbook.XmlDataBindings

For Each objBinding in objBindings
     ' Save the XML binding information to a variable.     
     Set strMapInfo = objBinding.XmlMap
     ' Work with binding information here.
Next