CustomXMLNode.ReplaceChildSubtree(String, CustomXMLNode) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the specified node (and its subtree) from the main tree, and replaces it with a different subtree in the same location.
public:
void ReplaceChildSubtree(System::String ^ XML, Microsoft::Office::Core::CustomXMLNode ^ OldNode);
public void ReplaceChildSubtree (string XML, Microsoft.Office.Core.CustomXMLNode OldNode);
abstract member ReplaceChildSubtree : string * Microsoft.Office.Core.CustomXMLNode -> unit
Public Sub ReplaceChildSubtree (XML As String, OldNode As CustomXMLNode)
Parameters
- XML
- String
Represents the subtree to be added.
- OldNode
- CustomXMLNode
Represents 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.