Exemplo n.º 1
0
 protected void RemoveNode()
 {
     CommonErrors.ExpectNoArguments(base.Log, base.TransformNameShort, base.ArgumentString);
     base.TargetNode.ParentNode.RemoveChild(base.TargetNode);
     object[] messageArgs = new object[] { base.TargetNode.Name };
     base.Log.LogMessage(MessageType.Verbose, SR.XMLTRANSFORMATION_TransformMessageRemove, messageArgs);
 }
Exemplo n.º 2
0
 protected override void Apply()
 {
     CommonErrors.ExpectNoArguments(base.Log, base.TransformNameShort, base.ArgumentString);
     base.TargetNode.AppendChild(base.TransformNode);
     object[] messageArgs = new object[] { base.TransformNode.Name };
     base.Log.LogMessage(MessageType.Verbose, SR.XMLTRANSFORMATION_TransformMessageInsert, messageArgs);
 }
Exemplo n.º 3
0
        protected override void Apply()
        {
            CommonErrors.ExpectNoArguments(Log, TransformNameShort, ArgumentString);

            TargetNode.AppendChild(TransformNode);

            Log.LogMessage(MessageType.Verbose, Resources.XMLTRANSFORMATION_TransformMessageInsert, TransformNode.Name);
        }
Exemplo n.º 4
0
 protected override void Apply()
 {
     CommonErrors.ExpectNoArguments(base.Log, base.TransformNameShort, base.ArgumentString);
     CommonErrors.WarnIfMultipleTargets(base.Log, base.TransformNameShort, base.TargetNodes, base.ApplyTransformToAllTargetNodes);
     base.TargetNode.ParentNode.ReplaceChild(base.TransformNode, base.TargetNode);
     object[] messageArgs = new object[] { base.TargetNode.Name };
     base.Log.LogMessage(MessageType.Verbose, SR.XMLTRANSFORMATION_TransformMessageReplace, messageArgs);
 }
Exemplo n.º 5
0
 protected override void Apply()
 {
     CommonErrors.ExpectNoArguments(Log, TransformNameShort, ArgumentString);
     if (this.TargetChildNodes == null || this.TargetChildNodes.Count == 0)
     {
         TargetNode.AppendChild(TransformNode);
         Log.LogMessage(MessageType.Verbose, SR.XMLTRANSFORMATION_TransformMessageInsert, TransformNode.Name);
     }
 }
Exemplo n.º 6
0
        protected void RemoveNode()
        {
            CommonErrors.ExpectNoArguments(Log, TransformNameShort, ArgumentString);

            XmlNode parentNode = TargetNode.ParentNode;

            parentNode.RemoveChild(TargetNode);

            Log.LogMessage(MessageType.Verbose, Resources.XMLTRANSFORMATION_TransformMessageRemove, TargetNode.Name);
        }
Exemplo n.º 7
0
        protected override void Apply()
        {
            CommonErrors.ExpectNoArguments(Log, TransformNameShort, ArgumentString);
            CommonErrors.WarnIfMultipleTargets(Log, TransformNameShort, TargetNodes, ApplyTransformToAllTargetNodes);

            XmlNode parentNode = TargetNode.ParentNode;

            parentNode.ReplaceChild(
                TransformNode,
                TargetNode);

            Log.LogMessage(MessageType.Verbose, Resources.XMLTRANSFORMATION_TransformMessageReplace, TargetNode.Name);
        }