Display Result of Search Core Result Web part in XML Format

By Sigar Dave No comments
1) Edit the search core result web part
2) Click on XSL Editor under ‘Display Properties’
3) Copy-Paste following code in editor:
<?xml version="1.0" encoding="UTF-8"?>
<xsltylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xslutput method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<xmp><xsl:copy-of select="*"/></xmp>
Above Lines of code will allow web part to display in XML format
Output for Technical Library Search Core Result web part:
As seen in above screenshot, output XML does not contain data for authorstateddate as a result date is not displayed in search result.

Please follow and like us:

Leave a Reply