GetDOM Method

Microsoft Office InfoPath

Returns a reference to the XML Document Object Model (DOM) of the specified DataObject object associated with the XDocument object.

expression.GetDOM(ByVal bstrName As String) As XMLDOMDocument

expression    Required. An expression that returns a reference to an XDocument object.

bstrName Required String. The name of a DataObject object.

returns    A reference to an XML DOM document 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

After you have a reference to the XML DOM that the GetDOM method returns, you can use any of the properties and methods that the XML DOM supports to manipulate the data that the DOM contains.

Note  For more information about the XML DOM, see the MSXML 5.0 SDK documentation in the Microsoft Script Editor (MSE) Help system.

Example

In the following example, the GetDOM method of the XDocument object is used to set a reference to the XML DOM that it returns, which in this case is the DataObject object named CityDropDownList:

var objXml;

objXml = XDocument.GetDOM("CityDropDownList");