<Something>
<Somethings.few>
<thing stuff1="XX" stuff2= "XXX">
<thing2>
<stuff value="YY">
</thing2>
</thing>
</Somethings.few>
</Something>
我想使用 powershell 更改 stuff1 的值,但问题出在Somethings.few
$xmlFile = [xml](gc file.xml)
$xmlFile.Something.Somethings.few.thing.stuff1="ZZ"
不适合我