CustomXMLNode.ReplaceChildSubtree Method
Removes the specified node (and its subtree) from the main tree, and replaces it with a different subtree in the same location.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Sub ReplaceChildSubtree ( _
XML As String, _
OldNode As CustomXMLNode _
)
'Usage
Dim instance As CustomXMLNode
Dim XML As String
Dim OldNode As CustomXMLNode
instance.ReplaceChildSubtree(XML, OldNode)
void ReplaceChildSubtree(
string XML,
CustomXMLNode OldNode
)
Parameters
XML
Type: System.StringRepresents the subtree to be added.
OldNode
Type: Microsoft.Office.Core.CustomXMLNodeRepresents the child node to be replaced.
Remarks
If the operation would result in an invalid tree structure, the replacement operation is not performed and an error message is displayed.