DOM Property (Solution Object)

Microsoft Office InfoPath

A read-only property that returns a reference to an XML Document Object Model (DOM) that contains the source XML of the form definition (.xsf) file.

expression.DOM

expression    Required. An expression that returns a reference to a Solution 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 of the Solution object allows you to programmatically access and manipulate the source XML of the .xsf file. After you have set a reference to the XML DOM, which contains the source XML data of the .xsf file, you can use any of the properties and methods that are supported by the XML DOM.

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

Example

In the following example, the DOM property of the Solution object is used to return all of the contents of a form's .xsf file using the xml property of the XML DOM:

var strXML;

strXML = XDocument.Solution.DOM.xml;