Contains a collection of XML Document Object Model (DOM) nodes.
Assembly: Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)
This type is a wrapper for a COM interface implemented by a coclass that is required by managed code for COM interoperability. To access the members specified by this interface, use the type that wraps the coclass that implements this interface. For information about that type, including usage, remarks, and examples, seeXMLNodes.
The XMLNodesCollection collection is a general-purpose collection that is used by a number of Microsoft Office InfoPath 2003 methods.
After you have set a reference to one of the XML DOM node objects that the XMLNodesCollection collection contains, you can use any of the properties and methods that the XML DOM provides for interacting with an XML node object.
In the following example, a reference is set to a collection of XML DOM nodes returned by the GetSelectedNodes method of the ViewObject object. Then the code displays the name and source XML of the first node found in the collection using a message box: