If you wish to view the raw XML data that is associated with a Search Core Results or People Search Core Results web part, you can do so via the following steps:
- Open IE and navigate to the page that contains the given Core Results web part
- Select Site Actions -> Edit Page
- Click on your web part's menu and select Edit Web Part
- Expand Display Properties and click on the XSL Editor... button
- In the Text Editor window, copy the existing XSL to a temporary location since you'll probably need it again. Here is a possible option for you:
- Hit Ctrl+a to highlight all of the content
- Hit Ctrl+c to save the content
- Open Notepad
- Hit Ctrl+v to past the content to Notepad
- Return to the Text Editor window, hit Ctrl+a, and hit Delete
- Copy and paste the following XSL code into the Text Editor window:
- Click Save
- Click OK
- Return to the parent Search page and enter a valid search parameter
<?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="/"> <xmp><xsl:copy-of select="*"/></xmp> </xsl:template> </xsl:stylesheet>
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.