且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用powershell检查节点是否存在而不会出现异常?

更新时间:2023-11-25 23:39:46

为什么你不能这样做:

$xmldata = [xml](Get-Content $webConfig)    
$FullSearchStr = $xmldata.configuration.'system.serviceModel'