DOM Property (MergeEvent Object)

Microsoft Office InfoPath

A read-only property that returns a reference to a form's underlying XML document as an XML Document Object Model (DOM) construction for the current form involved in a merging operation.

expression.DOM

expression    Required. An expression that returns a reference to a MergeEvent object.

Security Level

2: 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.

Remarks

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

Note  This object model member is not supported when the Disable Service Pack features option on the Advanced tab of the Options dialog box in InfoPath is selected or when Microsoft Office 2003 Service Pack 1 or later is not installed. Any form that implements this object model member in its code will generate an error message if it is opened in InfoPath when service pack features are disabled or unavailable.

Note  To learn more about the XML DOM and the properties and methods that it supports, see the MSXML 5.0 SDK documentation in the Microsoft Script Editor (MSE) Help system.

Example

This example shows how to use the DOM property of an instance of the MergeEvent object to merge the data into the current form:

        XDocument.ImportDOM(eventObj.DOM);