Show All

# Solution Property

A read-only property that returns a reference to the Solution object that is associated with a Microsoft Office InfoPath 2003 form.

expression.Solution

expression Required. An expression that returns a reference to an XDocument 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 Solution object provides access to information about a form's associated form definition (.xsf) file, including access to an XML Document Object Model (DOM) that contains all of the source XML of the .xsf file.

## Example

In the following example, the Solution property of the XDocument object is used to load a variable with the XML contents of the .xsf file:

    var strXSF;
    strXSF = XDocument.Solution.DOM.xml;

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp