Tuesday 3 August 2010

Getting XML data from SharePoint list

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. 
 Please refer the following MSDN article for a more detailed instructions


Kirk Evans Blog 


Simple isn't it. Now make use of the XML data wherever you want

2 comments:

Anonymous said...

I would like to exchange links with your site hemanthsali.blogspot.com
Is this possible?

Anonymous said...

any reason why this method would return an empty page rather than the xml