protected override void Apply() { CommonErrors.ExpectNoArguments(Log, TransformNameShort, ArgumentString); CommonErrors.WarnIfMultipleTargets(Log, TransformNameShort, TargetNodes, ApplyTransformToAllTargetNodes); TargetNode.ParentNode.ReplaceChild(TransformNode, TargetNode); Log.LogMessage(MessageType.Verbose, SR.XMLTRANSFORMATION_TransformMessageReplace, TargetNode.Name); }
protected override void Apply() { CommonErrors.WarnIfMultipleTargets(Log, TransformNameShort, TargetNodes, ApplyTransformToAllTargetNodes); RemoveNode(); }