Solution.DOM Property

Gets a reference to an XML Document Object Model (DOM) that contains the source XML of the form definition (.xsf) file.

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

Syntax

'Declaration
ReadOnly Property DOM As IXMLDOMDocument
    Get
'Usage
Dim instance As Solution
Dim value As IXMLDOMDocument

value = instance.DOM
IXMLDOMDocument DOM { get; }

Property Value

Type: Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMDocument

Remarks

The DOM property 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.

Important

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.

Examples

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

string xml = thisXDocument.Solution.DOM.xml;

See Also

Reference

Solution Interface

Solution Members

Microsoft.Office.Interop.InfoPath.SemiTrust Namespace