Generate XML Output
The method allows the generation of XML for the version of the item specified.
- Connect to the configuration web service.
- Specify the identifier and version of the item.
Code Sample
# Get the XML for the item.
$xml = $xia.GET_XmlOutput(1234,0);
# Write the XML to a file.
Write-Host "Saving XML file...";
$filename = "$env:temp\sample.xml";
[IO.File]::WriteAllText($filename, $xml);
# Open the file.
[System.Diagnostics.Process]::Start($filename);