DataObject.DOM property

Gets a reference to an XML Document Object Model (DOM) that is associated with a DataSourceObject object.

Namespace:  Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly:  Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)

Syntax

'Declaration
ReadOnly Property DOM As IXMLDOMDocument
    Get
'Usage
Dim instance As DataObject
Dim value As IXMLDOMDocument

value = instance.DOM
IXMLDOMDocument DOM { get; }

Property value

Type: Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMDocument

Remarks

The DOM property allows you to programmatically access and manipulate the stored XML data of a secondary data source represented by the DataObject object. After you have set a reference to the XML DOM, which contains the stored XML data, you can use any of the properties and methods that are supported by the XML DOM.

Important

This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

Examples

In the following example, the DOM property of the DataSourceObject object is used to return all of the contents of a form's secondary data source using the xml property of the XML DOM:

string xml = thisXDocument.DataObjects["CityList"].DOM.xml;

See also

Reference

DataObject interface

DataObject members

Microsoft.Office.Interop.InfoPath.SemiTrust namespace