This documentation is archived and is not being maintained.

Document.XMLNodes Property

Office 2007
Returns an XMLNodes collection that represents the collection of all XML elements within a document.

Syntax

expression.XMLNodes

expression   Required. A variable that represents a Document object.

Example

The following example returns the first XML node in the active document.

Visual Basic for Applications
Dim objNode As XMLNode
    
Set objNode = ActiveDocument.XMLNodes.Item(1)



Show: