Share via


DataObject.DOM Property

InfoPath Developer Reference

A read-only property that returns a reference to an XML Document Object Model (DOM) that is associated with a DataObject object. Read-only

Version Information
 Version Added:  InfoPath 2003

Syntax

expression.DOM

expression   An expression that returns a DataObject object.

Return Value
[IXMLDOMDOCUMENT]

Remarks

The DOM property allows you to programmatically access and manipulate the source XML of a secondary data source that is represented by the DataObject object. After you have set a reference to the XML DOM, which contains the source XML data of a secondary data source, you can use any of the properties and methods that are supported by the XML DOM.

Bb229914.vs_note(en-us,office.12).gif  Note
To learn more about the XML DOM and all of the properties and methods that it supports, 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 DOM property of the DataObject object is used to return all of the contents of a form's secondary data source using the xml property of the XML DOM:

JScript
  var strXML;
strXML = XDocument.DataObjects("CityList").DOM.xml;

See Also