Friday, November 07, 2008

How to view the raw XML spat out by SharePoint Designer datasources

Hi SharePoint Guys & Girls!

Just a quickie, cause I'm always struggling to find that information.

Here is a very simple XSLT to view the raw XML spat out by SharePoint Designer's various SPDatasource objects:

I always forget it and spend hours looking for it on the web...

The link from the Microsoft website is here:
http://msdn.microsoft.com/en-us/library/ms546985.aspx


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<xsl:copy-of select="*"/>
</xsl:template>
</xsl:stylesheet>


Cheers,
Etienne

No comments: