By Zachary Dwight, Web Developer, Yakima, WA
Another simple script to retrieve metadata from the server, save it a specified location (as .xml), and displays the metadata in a browser. Please feel free to edit and enhance. I use the checked property (as always) to select the layer that I need to extract the data from. Thanks and enjoy!