XMLLocation Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.  

DscXMLLocationEnum

DscXMLLocationEnum can be one of these DscXMLLocationEnum constants.
dscXMLDataFile The XML data is stored in a separate file.
dscXMLEmbedded The XML data is stored in an XML data island located in the current data access page.

expression.XMLLocation

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