XMLNode.RemoveChild Method (Word)
Removes a child element from the specified element.
Syntax
expression .RemoveChild(ChildElement)
expression An expression that returns an XMLNode object.
Parameters
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
ChildElement |
Required |
XMLNode |
The child element to be removed. |
Return Value
Nothing
Example
The following example removes the first child from the first element in the active document.
ActiveDocument.XMLNodes(1).RemoveChild _
ActiveDocument.XMLNodes(1).ChildNodes(1)