XMLNode.ChildNodes Property (Word)

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.

ActiveDocument.XMLNodes(1).RemoveChild _ 
 ActiveDocument.XMLNodes(1).ChildNodes(1)

See Also

Concepts

XMLNode Object Members

XMLNode Object