Share via


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
Assembly: Microsoft.Office.Interop.InfoPath (in microsoft.office.interop.infopath.dll)

Syntax

'Declaration
'Usage

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.

Example

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 Namespace