3
<Something>
<Somethings.few>
<thing stuff1="XX" stuff2= "XXX">
<thing2>
<stuff value="YY">
</thing2>
</thing>
</Somethings.few>
</Something>
我想用PowerShell來改變stuff1的價值,但問題是Somethings.few轉義字符逃脫「。」使用PowerShell編輯XML文件時
$xmlFile = [xml](gc file.xml)
$xmlFile.Something.Somethings.few.thing.stuff1="ZZ"
不爲我