Use powershell to update an attribute in ClarionProperties.xml

powershell
Tags: #<Tag:0x00007f46e49e90f8>

#1

Why you would want to do this is totally up to you. It is also just a nice example of using powershell to do xml things :smile:

$doc = New-Object System.Xml.XmlDocument
$doc.Load("C:\Dev\Clarion\ClarionProperties.xml")
$XPath = "/ClarionProperties/Properties[@name='WorkbenchMemento']"  

$node = ( $doc | Select-Xml -XPath $XPath ).Node  
$node.bounds.value = "1,2,3,4"
$doc.Save("C:\Dev\Clarion\ClarionProperties.xml")