Actually i dont have much knowledge about xtd-transform. What i need in my xdt file :
<add key="EndpointName" value="SomeValue" xdt:Transform="SetAttributes(value)" xdt:Locator="Match(key)" />
routine work that im doing in powershell :
$cache.SetAttribute("key","EndpointName")
$cache.SetAttribute("value","SomeValue")
$cache.SetAttribute("xdt:Transform","SetAttributes(value)")
$cache.SetAttribute("xdt:Locator","Match(key)")
And here are what i have. Dont match my points:
<add key="EndpointName" value="Email" Transform="SetAttributes(value)" Locator="Match(key)" />
So is it possible to create xdt:attribute using powershell scripts?
Thanks guys!
When XML namespaces are involved you need to use an XmlNamespaceManager e.g.:
Results in: