I have two environments, Dev and Prod, I am using XML variable Substitution to change the values according to the environment.
What I am trying to do is change the value of a specific attribute. For instance, I have the following:
<client>
<endpoint address="url_1" binding="binding_1" bindingConfiguration="configuration_1" contract="contract_1" name="firstLink" />
<endpoint address="url_2" binding="binding_2" bindingConfiguration="configuration_2" contract="contract_2" name="secondLink" />
</client>
and I want to substitute the address
values to url_3
and the second endpoint to url_4
. So, it would look something like this:
<client>
<endpoint address="url_3" binding="binding_3" bindingConfiguration="configuration_3" contract="contract_3" name="thirdLink" />
<endpoint address="url_4" binding="binding_4" bindingConfiguration="configuration_4" contract="contract_4" name="fourthLink" />
</client>
How it is on the DevOps side is that there is a key, value, environment
pairs where the key is the name.
is there a way to specifically change the address
using the same convention? Address is what I am trying to change, and I am not allowed install any outside extensions.