UseXMLData Property

Microsoft Office Web Components Object Model

UseXMLData Property

       

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