Share via


XDocument.GetDOM Method

InfoPath Developer Reference

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

Version Information
 Version Added:  InfoPath 2003

Syntax

expression.GetDOM(bstrName)

expression   An expression that returns a XDocument object.

Parameters

Name Required/Optional Data Type Description
bstrName Required String The name of a DataObject object.

Return Value
[IXMLDOMDOCUMENT]

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.

Bb229771.vs_note(en-us,office.12).gif  Note
For more information about the XML DOM, see the MSXML 5.0 SDK documentation in the Microsoft Script Editor (MSE) Help system.

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.

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:

JScript
  var objXml;

objXml = XDocument.GetDOM("CityDropDownList");

See Also