expression.XMLDataTarget
expression Required. An expression that returns a DataSourceControl object.
Example
This example exports the current data in the data source control named MSODSC to an XML data file.
Sub ExportData()
Dim dscConstants
Set dscConstants = MSODSC.Constants
' Set the location of the XML data to a data file.
MSODSC.XMLLocation = dscConstants.dscXMLDataFile
' Set the specific target to export to.
MSODSC.XMLDataTarget = "Q1 Sales Analysis.xml"
' Export the current data.
MSODSC.ExportXML
End Sub