_XDocument3.GetDOM(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a reference to the XML Document Object Model (DOM) of the specified DataSourceObject object associated with the XDocument object.
public:
Microsoft::Office::Interop::InfoPath::Xml::IXMLDOMDocument ^ GetDOM(System::String ^ bstrName);
public Microsoft.Office.Interop.InfoPath.Xml.IXMLDOMDocument GetDOM (string bstrName);
abstract member GetDOM : string -> Microsoft.Office.Interop.InfoPath.Xml.IXMLDOMDocument
Public Function GetDOM (bstrName As String) As IXMLDOMDocument
Parameters
- bstrName
- String
The name of a DataObject object
Returns
An IXMLDOMDocument of the XML Document Object Model (DOM) of the specified DataObject object associated with the XDocument object.
Implements
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.<span class="label">GetDOM</span>("CityDropDownList");
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.