XMLNode.ChildNodes Property

Word Developer Reference

Returns an XMLNodes collection that represents the child elements of a specified element.

Syntax

expression.ChildNodes

expression   Required. A variable that represents a XMLNode object.

Example

The following example removes the first child element of the root element in the active document.

Visual Basic for Applications
  ActiveDocument.XMLNodes(1).RemoveChild _
    ActiveDocument.XMLNodes(1).ChildNodes(1)

See Also