示例#1
0
        public void UpdateAttributeNameByNameAndNamespace(string oldName, string name, string oldNamespace)
        {
            MessageModificationDetails messageModificationInstruction = new MessageModificationDetails(MessageModificationInstructionTypeEnum.UpdateAttributeName, oldName: oldName,
                                                                                                       oldNamespace: oldNamespace, name: name);

            AddMessageModificationInstruction(messageModificationInstruction);
        }
示例#2
0
        public void UpdateAttributeValueByNameAndOldValue(string oldValue, string oldName, string value)
        {
            MessageModificationDetails messageModificationInstruction = new MessageModificationDetails(MessageModificationInstructionTypeEnum.UpdateAttributeValue, oldValue: oldValue,
                                                                                                       oldName: oldName, value: value);

            AddMessageModificationInstruction(messageModificationInstruction);
        }
示例#3
0
        public void UpdateAttributeValueByNameAndNamespace(string localName, string _namespace, string value)
        {
            MessageModificationDetails messageModificationInstruction = new MessageModificationDetails(MessageModificationInstructionTypeEnum.UpdateAttributeValue, oldName: localName,
                                                                                                       oldNamespace: _namespace, value: value);

            AddMessageModificationInstruction(messageModificationInstruction);
        }
示例#4
0
        public void UpdateElementValueByOldValue(string oldValue, string value)
        {
            MessageModificationDetails messageModificationInstruction = new MessageModificationDetails(MessageModificationInstructionTypeEnum.UpdateElementValue,
                                                                                                       oldValue: oldValue, value: value);

            AddMessageModificationInstruction(messageModificationInstruction);
        }
示例#5
0
        public void UpdateElementValueByNodeNameNamespaceAndOldValue(string nodeName, string _namespace, string oldValue, string value)
        {
            MessageModificationDetails messageModificationInstruction = new MessageModificationDetails(MessageModificationInstructionTypeEnum.UpdateElementValue, name: nodeName, _namespace: _namespace,
                                                                                                       oldValue: oldValue, value: value);

            AddMessageModificationInstruction(messageModificationInstruction);
        }
示例#6
0
        private void AddMessageModificationInstruction(MessageModificationDetails messageModificationInstruction)
        {
            if (messageModificationInstructions == null)
            {
                messageModificationInstructions = new MessageModificationInstructions(CallToken);
                base.AddInstruction(messageModificationInstructions);
            }

            messageModificationInstructions._MessageModificationDetails.Add(messageModificationInstruction);
        }
示例#7
0
        public void RemoveNamespace(string Namespace)
        {
            MessageModificationDetails messageModificationInstruction = new MessageModificationDetails(MessageModificationInstructionTypeEnum.RemoveNamespace, Namespace);

            AddMessageModificationInstruction(messageModificationInstruction);
        }
示例#8
0
        public void ReplacePrefixForGivenNamespace(string OldNamespace, string NewPrefix)
        {
            MessageModificationDetails messageModificationInstruction = new MessageModificationDetails(MessageModificationInstructionTypeEnum.UpdateNamespaceAndPrefix, oldNamespace: OldNamespace, prefix: NewPrefix);

            AddMessageModificationInstruction(messageModificationInstruction);
        }
示例#9
0
        public void ReplaceNamespaceAndPrefix(string OldNamespace, string NewNamespace, string NewPrefix)
        {
            MessageModificationDetails messageModificationInstruction = new MessageModificationDetails(MessageModificationInstructionTypeEnum.UpdateNamespaceAndPrefix, NewNamespace, OldNamespace, NewPrefix);

            AddMessageModificationInstruction(messageModificationInstruction);
        }
示例#10
0
        /// <summary>
        /// Replace the namespace and namespace prefix on the document root node
        /// </summary>
        public void ReplaceRootNodeNamespaceAndPrefix(string Namespace, string NamespacePrefix)
        {
            MessageModificationDetails messageModificationInstruction = new MessageModificationDetails(MessageModificationInstructionTypeEnum.UpdateRootNodeNamespaceAndPrefix, Namespace, prefix: NamespacePrefix);

            AddMessageModificationInstruction(messageModificationInstruction);
        }
示例#11
0
        /// <summary>
        /// Add a namespace to the document root node
        /// </summary>
        public void AddRootNodeNamespace(string Namespace)
        {
            MessageModificationDetails messageModificationInstruction = new MessageModificationDetails(MessageModificationInstructionTypeEnum.AddRootNodeNamespaceAndPrefix, Namespace, prefix: "ns0");

            AddMessageModificationInstruction(messageModificationInstruction);
        }
示例#12
0
        public void RemoveAttributeByNameAndNamespace(string name, string _namespace)
        {
            MessageModificationDetails messageModificationInstruction = new MessageModificationDetails(MessageModificationInstructionTypeEnum.RemoveAttribute, name: name, _namespace: _namespace);

            AddMessageModificationInstruction(messageModificationInstruction);
        }
示例#13
0
        public void RemoveElementAndChildrenByName(string name)
        {
            MessageModificationDetails messageModificationInstruction = new MessageModificationDetails(MessageModificationInstructionTypeEnum.RemoveElementAndChildElements, name: name);

            AddMessageModificationInstruction(messageModificationInstruction);
        }
示例#14
0
        public void UpdateElementNameByOldName(string oldName, string name)
        {
            MessageModificationDetails messageModificationInstruction = new MessageModificationDetails(MessageModificationInstructionTypeEnum.UpdateElementName, name: name, oldName: oldName);

            AddMessageModificationInstruction(messageModificationInstruction);
        }
示例#15
0
        /// <summary>
        /// Add a namespace and namespace prefix to the document root node
        /// </summary>
        public void AddDocumentNamespaceAndPrefix(string Namespace, string NamespacePrefix)
        {
            MessageModificationDetails messageModificationInstruction = new MessageModificationDetails(MessageModificationInstructionTypeEnum.AddRootNodeNamespaceAndPrefix, Namespace, prefix: NamespacePrefix);

            AddMessageModificationInstruction(messageModificationInstruction);
        }