UseXMLData 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.
Returns or sets whether the data access page will bind to XML data. Read/write Boolean.
expression.UseXMLData
expression Required. An expression that returns a DataSourceControl object.
Remarks
Use the XMLLocation property to set whether the data is located in an XML data island, or a separate XML data file. Use the XMLDataTarget property to specify the path or ID to use when binding to the data.
Example
This example binds the data access page to an XML data file.
Sub MSODSC_BeforeInitialBind(DSCEventInfo)
Dim dscConstants
Set dscConstants = MSODSC.Constants
' Set the offline type.
MSODSC.XMLLocation = dscConstants.dscXMLDataFile
' Set the location of the XML data to a data file.
MSODSC.XMLDataTarget = "Q1 Sales Analysis.xml"
' Bind to the XML data.
MSODSC.UseXMLData = True
End Sub