ChildNodes Property

Microsoft Word Visual Basic

ChildNodes Property

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

expression.ChildNodes

expression    Required. An expression that returns an 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)