#######################################
# Skrypt PowerShella
# (C) dr Holger Schwichtenberg
# http://www.powershell-doktor.de
########################################


#Select-Xml "H:\demo\PowerShell\PowerShell_Commandlet_Library\PowerShell_Commandlet_Library.csproj"  -Namespace 'dns=http://schemas.microsoft.com/developer/msbuild/2003' -XPath "//dns:Compile/@Include"


$dokument = [xml] (Get-Content -Path witryny.xml)
#$dokument.Websites.Website | select URL, OPis

#Select-Xml witryny.xml -XPath "//URL"

$dokument.SelectNodes("//URL") 
$dokument.SelectNodes("//Witryna/@ID")  
$dokument.SelectSingleNode("//Witryna[@ID=3]/URL")

select-Xml witryny.xml -XPath "//URL" | select innerxml
select-Xml witryny.xml -XPath "//Website/@ID" | select innerxml
select-Xml witryny.xml -XPath "//Website[@ID=3]/URL" | select innerxml



