Viewing Search Results XML

Reading Time: < 1 minute

If you need to view the actual xml that is returned in SharePoint search results, you need to modify the search core results webpart and replace the display properties with this:

<?xml version=”1.0″ encoding=”UTF-8″?>
<xsl:stylesheet version=”1.0″ xmlns:xsl=”“>
<xsl:output method=”xml” version=”1.0″ encoding=”UTF-8″ indent=”yes”/>
<xsl:template match=”/”>
<xmp><xsl:copy-of select=”*”/></xmp>

Note:  Remember to backup the old display properties for the search core results webpart in case it was customized before doing this.

Here is the MSDN Link for a more in-depth explanation of this.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.