Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

_XDocument2.ImportDOM Method (Microsoft.Office.Interop.InfoPath.SemiTrust)

Imports the specified XML data into the current form.

This method is not CLS-compliant.  

Namespace: Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in microsoft.office.interop.infopath.semitrust.dll)
void ImportDOM (
	IXMLDOMDocument pxDoc



The XML data that is to be imported (merged) into the currently open form.

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


This member 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.

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)
 e.ReturnStatus = true;
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.