PowerShell
PowerShell
Load XML from Local FilePath
Demonstrates how to load XML from a local XML file.Chilkat PowerShell Downloads
Add-Type -Path "C:\chilkat\ChilkatDotNet47-x64\ChilkatDotNet47.dll"
$success = $false
$xml = New-Object Chilkat.Xml
# Pass either an absolute file path, or a file path relative from the current working directory of the caller.
$success = $xml.LoadXmlFile("qa_data/hamlet.xml")
if ($success -eq $false) {
$($xml.LastErrorText)
exit
}
$("Success.")