public void UpdateAttributeNameByNameAndNamespace(string oldName, string name, string oldNamespace) { MessageModificationDetails messageModificationInstruction = new MessageModificationDetails(MessageModificationInstructionTypeEnum.UpdateAttributeName, oldName: oldName, oldNamespace: oldNamespace, name: name); AddMessageModificationInstruction(messageModificationInstruction); }
public void UpdateAttributeValueByNameAndOldValue(string oldValue, string oldName, string value) { MessageModificationDetails messageModificationInstruction = new MessageModificationDetails(MessageModificationInstructionTypeEnum.UpdateAttributeValue, oldValue: oldValue, oldName: oldName, value: value); AddMessageModificationInstruction(messageModificationInstruction); }
public void UpdateAttributeValueByNameAndNamespace(string localName, string _namespace, string value) { MessageModificationDetails messageModificationInstruction = new MessageModificationDetails(MessageModificationInstructionTypeEnum.UpdateAttributeValue, oldName: localName, oldNamespace: _namespace, value: value); AddMessageModificationInstruction(messageModificationInstruction); }
public void UpdateElementValueByOldValue(string oldValue, string value) { MessageModificationDetails messageModificationInstruction = new MessageModificationDetails(MessageModificationInstructionTypeEnum.UpdateElementValue, oldValue: oldValue, value: value); AddMessageModificationInstruction(messageModificationInstruction); }
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); }
private void AddMessageModificationInstruction(MessageModificationDetails messageModificationInstruction) { if (messageModificationInstructions == null) { messageModificationInstructions = new MessageModificationInstructions(CallToken); base.AddInstruction(messageModificationInstructions); } messageModificationInstructions._MessageModificationDetails.Add(messageModificationInstruction); }
public void RemoveNamespace(string Namespace) { MessageModificationDetails messageModificationInstruction = new MessageModificationDetails(MessageModificationInstructionTypeEnum.RemoveNamespace, Namespace); AddMessageModificationInstruction(messageModificationInstruction); }
public void ReplacePrefixForGivenNamespace(string OldNamespace, string NewPrefix) { MessageModificationDetails messageModificationInstruction = new MessageModificationDetails(MessageModificationInstructionTypeEnum.UpdateNamespaceAndPrefix, oldNamespace: OldNamespace, prefix: NewPrefix); AddMessageModificationInstruction(messageModificationInstruction); }
public void ReplaceNamespaceAndPrefix(string OldNamespace, string NewNamespace, string NewPrefix) { MessageModificationDetails messageModificationInstruction = new MessageModificationDetails(MessageModificationInstructionTypeEnum.UpdateNamespaceAndPrefix, NewNamespace, OldNamespace, NewPrefix); AddMessageModificationInstruction(messageModificationInstruction); }
/// <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); }
/// <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); }
public void RemoveAttributeByNameAndNamespace(string name, string _namespace) { MessageModificationDetails messageModificationInstruction = new MessageModificationDetails(MessageModificationInstructionTypeEnum.RemoveAttribute, name: name, _namespace: _namespace); AddMessageModificationInstruction(messageModificationInstruction); }
public void RemoveElementAndChildrenByName(string name) { MessageModificationDetails messageModificationInstruction = new MessageModificationDetails(MessageModificationInstructionTypeEnum.RemoveElementAndChildElements, name: name); AddMessageModificationInstruction(messageModificationInstruction); }
public void UpdateElementNameByOldName(string oldName, string name) { MessageModificationDetails messageModificationInstruction = new MessageModificationDetails(MessageModificationInstructionTypeEnum.UpdateElementName, name: name, oldName: oldName); AddMessageModificationInstruction(messageModificationInstruction); }
/// <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); }