Ever wondered how you can generate a XML file/data from a SharePoint list, Have you started to think on the possible code..wait!!, here is an easy solution.
Simply format the following string to form the request URL.
http://contoso/sites/sales/_vti_bin/owssvr.dll?Cmd=Display&List={GUID}&XMLDATA=TRUE&noredirect=true
- {0} – The URL to your site. This could be the root web or a child site.
- {1} – The GUID for your list.