Partager via


Document.XMLNodes Property (Word)

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.

Dim objNode As XMLNode 
 
Set objNode = ActiveDocument.XMLNodes.Item(1)

See Also

Concepts

Document Object Members

Document Object