最近Powershellを勉強していますので、どうぞご一緒にください。私はPowerShellを使用したマニフェスト以下のXML読みしようとしています:PowershellからXMLファイル/マニフェストを読む
$/TFS/Main/branch/Shrink.sql $/TFS/Main/branch/Users.sql $/TFS/Main/branch/Pre/Logins.sql $/TFS/Main/branch/Post/Security.sql
君たちは、PowerShellスクリプトで私を助けることができる:私はこのような結果は
<manifest desc="sql manifest">
<projects>
<project project_directory="$/TFS/Main/branch/">
<files>
<file filename="Shrink.sql"/>
<file filename="Users.sql"/>
</files>
</project>
<project project_directory="$/TFS/Main/branch/Pre/">
<files>
<file filename="Logins.sql"/>
</files>
</project>
<project project_directory="$/TFS/Main/branch/Post/">
<files>
<file filename="Security.sql"/>
</files>
</project>
</projects>
</manifest>
を期待していますか?
$XmlDocument = Get-Content -Path "xmlfile.xml"
「PowerShellでXMLファイルをどのように解析するのですか? –