I want to display the content of all the XML files present in a folder one by one. Commands I am using are:
$test = Get-ChildItem | Select-Object -Property Name
foreach ($i in $test) {
Get-Content $i
}
but it is not working as expected. It is throwing an error saying:
Cannot find path \<dir_path>\@{Name=<filename>.xml} because it does not exist