Share via


Range.XMLNodes Property

Word Developer Reference

Returns an XMLNodes collection that represents the XML elements in the specified range—including any elements that are only partially within the range. Read-only.

Syntax

expression.XMLNodes

expression   An expression that returns a Range object.

Example

The following example accesses the XML elements that are contained within the first 200 characters of the active document.

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

See Also