concept xml answer file in category powershell

appears as: n XML answer file, XML swer file
PowerShell Deep Dives

This is an excerpt from Manning's book PowerShell Deep Dives.

Read an XML answer file

Using an XML answer file in coordination with a script is a good way to separate configuration details from the script itself, while still providing a persistent store of those details. The logic to be executed is stored generically in the script, whereas specific names and values are stored in one or more answer files specific to various configurations. In this arrangement the script retrieves and parses the XML file, using its data to fill in parameter and settings values, as shown in figure 10.