DataObject.DOM Property

Definition

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

public:
 property Microsoft::Office::Interop::InfoPath::Xml::IXMLDOMDocument ^ DOM { Microsoft::Office::Interop::InfoPath::Xml::IXMLDOMDocument ^ get(); };
public Microsoft.Office.Interop.InfoPath.Xml.IXMLDOMDocument DOM { get; }
member this.DOM : Microsoft.Office.Interop.InfoPath.Xml.IXMLDOMDocument
Public ReadOnly Property DOM As IXMLDOMDocument

Property Value

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"].<span class="label">DOM</span>.xml;

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.

Applies to