_XDocument3.GetDOM Method (String)

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

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

Syntax

'Declaration
Function GetDOM ( _
    bstrName As String _
) As IXMLDOMDocument
'Usage
Dim instance As _XDocument3
Dim bstrName As String
Dim returnValue As IXMLDOMDocument

returnValue = instance.GetDOM(bstrName)
IXMLDOMDocument GetDOM(
    string bstrName
)

Parameters

Return Value

Type: Microsoft.Office.Interop.InfoPath.Xml.IXMLDOMDocument
An IXMLDOMDocument of the XML Document Object Model (DOM) of the specified DataObject object associated with the XDocument object.

Implements

_XDocument2.GetDOM(String)

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.

Examples

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 DataSourceObject

object named "CityDropDownList":

IXMLDOMDocument city = thisXDocument.GetDOM("CityDropDownList");

See Also

Reference

_XDocument3 Interface

_XDocument3 Members

GetDOM Overload

Microsoft.Office.Interop.InfoPath Namespace