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
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.Xml.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.
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;