Raw XML - Seeing what's returned in your request
One thing that might help you at some point is being able to see the raw XML that is coming back in your request. In SharePoint you don't have an easy way to view it. Here is a simple way to get the data in your web part.
First, go to your page and get into edit mode. Another option is to open it in Designer and edit the XSL source there, just quicker in the web.
Second, copy this code into your XSL area for your web part.
<?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>
Save or exit edit mode and reload your page. After your page loads right-click and view source. Your XML will be visible in the page that pops up.
Enjoy!
First, go to your page and get into edit mode. Another option is to open it in Designer and edit the XSL source there, just quicker in the web.
Second, copy this code into your XSL area for your web part.
<?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>
Save or exit edit mode and reload your page. After your page loads right-click and view source. Your XML will be visible in the page that pops up.
Enjoy!
Comments