Share via


_XDocument3.ImportDOM method (IXMLDOMDocument)

Imports the specified XML data into the current form.

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

Syntax

'Declaration
Sub ImportDOM ( _
    pxDoc As IXMLDOMDocument _
)
'Usage
Dim instance As _XDocument3
Dim pxDoc As IXMLDOMDocument

instance.ImportDOM(pxDoc)
void ImportDOM(
    IXMLDOMDocument pxDoc
)

Parameters

Implements

_XDocument2.ImportDOM(IXMLDOMDocument)

Remarks

Using the object model to import a form programmatically is equivalent to performing a merge operation in the user interface.

Examples

In the following example, the ImportDOM method of the XDocument object is used to import a form from the OnMergeRequest event:

public void OnMergeRequest(MergeEvent e)
{ 
 thisXDocument.ImportDOM(e.DOM);
 e.ReturnStatus = true;
}

See also

Reference

_XDocument3 interface

_XDocument3 members

ImportDOM overload

Microsoft.Office.Interop.InfoPath namespace