我是PowerShell的新手.我有一个配置XML,读作为 -
<xml>
<Section name="BackendStatus">
<BEName BE="crust" Status="1" />
<BEName BE="pizza" Status="1" />
<BEName BE="pie" Status="1" />
<BEName BE="bread" Status="1" />
<BEName BE="Kulcha" Status="1" />
<BEName BE="kulfi" Status="1" />
<BEName BE="cheese" Status="1" />
</Section>
</xml>
Run Code Online (Sandbox Code Playgroud)
我需要解析每个元素BEName
以检查状态.如何使用PowerShell完成此操作?
powershell ×1