If you already have a configured and working phone, you can use the spacfg.xml command to display, in a browser, the phone's configuration. You can use this browser output as input for the xml configuration file. For example: Using Google's Chrome use the following URL: view-source:http://<IP_address_of_phone>/admin/spacfg.xml
Copy and paste the contents of the browser into a file named for the MAC address of the phone. For example: spa002584d8d147.xml.
Note: Use the View Source menu option for Internet Explorer and Firefox browsers.
Forcing a Phone to Retrieve a Configuration
At some point in time, you will need to force a previously deployed and operational phone to retrieve a specific configuration. If you have an error in a phone's configuration profile, this is an easy way to direct the phone to the appropriate configuration. The phone will retrieve the configuration and subsequently update its profile rule. Here is how you can achieve this.
Force a phone to update its Provisioning tab > Configuration Profile > Profile Rule.