SelectNodes1 Powershell xml parsing Powershell 에서 XML 파일을 파싱하는 경우 아래와 같이 두가지 방법을 사용할 수 있습니다. 첫번째는 System.Xml.XmlDocument 타입을 사용하는 방법이고 두번째는 Select-Xml commandlets 을 사용하는 방법입니다. 1. System.Xml.XmlDocument 을 사용하는 방법 [xml]$cn = Get-Content "XML_PATH" $links = $cn.SelectNodes('//linkedResources/link') 2. Select-Xml 을 사용하는 방법 $links2 = Select-Xml -path "XML_PATH" -XPath '//linkedResources/link' | Select-Object -ExpandProperty Node Selec.. 2019. 1. 30. 이전 1 다음