The method allows the generation of XML for the version of the item specified.


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);