malinsaubefix
New Member
I've got a C# project that references a lot of WCF services. For local testing, I want to replace the contents of the identity tags so that it will accept anything running on localhost.The following transformation works, but only inserts the dns element in the first matching location. So, if I had 5 endpoints referenced, one would have the dns tag, and the others would all have empty identity elements.\[code\]<system.serviceModel> <client> <endpoint> <identity> <dns xdt:Transform="Insert" value="http://stackoverflow.com/questions/12809264/localhost"/> <userPrincipalName xdt:Transform="RemoveAll" value="http://stackoverflow.com/questions/12809264/someIdentity" /> </identity> </endpoint> </client> </system.serviceModel>\[/code\]How do I alter all of the matching elements, not just the first?