<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>IE8</title>
        <link>http://blogs.techaholics.gr/dstellakis/category/2.aspx</link>
        <description>IE8</description>
        <language>el-GR</language>
        <copyright>Dimosthenis Stellakis</copyright>
        <generator>Subtext Version 2.1.2.2</generator>
        <item>
            <title>IE8 Search Provider</title>
            <link>http://blogs.techaholics.gr/dstellakis/archive/2010/04/09/ie8-search-provider.aspx</link>
            <description>&lt;p&gt;Recently, I was building an open search provider for a client's web site. By building a search provider for your website, you give the ability to the users to use Internet Explorer's search box to quickly search your web site for the desired content. A search provider is also installed as an accelerator, thus providing even more search power and ease of use to the end user.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/cc848862(VS.85).aspx"&gt;MSDN&lt;/a&gt; has a very comprehensive article on building search providers for Internet Explorer 8. I wanted to include support for visual search suggestions, which is a fairly easy proccess, one has to create a page or handler that returns an XML (or JSON) response, based on the search term provided. This XML would look like this:&lt;/p&gt;
&lt;pre&gt;&amp;lt;?xml version="1.0"?&amp;gt;&lt;br /&gt;&amp;lt;SearchSuggestion xmlns="http://schemas.microsoft.com/Search/2008/suggestions"&amp;gt;&lt;br /&gt;  &amp;lt;Query&amp;gt;xbox&amp;lt;/Query&amp;gt;&lt;br /&gt;  &amp;lt;Section&amp;gt;&lt;br /&gt;    &amp;lt;Item&amp;gt;&lt;br /&gt;       &amp;lt;Text&amp;gt;Xbox 360&amp;lt;/Text&amp;gt;&lt;br /&gt;       &amp;lt;Description&amp;gt;The official Xbox website from Microsoft&amp;lt;/Description&amp;gt;&lt;br /&gt;       &amp;lt;Url&amp;gt;http://www.xbox.com&amp;lt;/Url&amp;gt;&lt;br /&gt;    &amp;lt;/Item&amp;gt;&lt;br /&gt;    &amp;lt;Item&amp;gt;&lt;br /&gt;       &amp;lt;Text&amp;gt;Xbox cheats&amp;lt;/Text&amp;gt;&lt;br /&gt;       &amp;lt;Description&amp;gt;Codes and walkthroughs&amp;lt;/Description&amp;gt;&lt;br /&gt;       &amp;lt;Url&amp;gt;http://www.example.com/xboxcheatcodes.aspx&amp;lt;/Url&amp;gt;&lt;br /&gt;    &amp;lt;/Item&amp;gt;&lt;br /&gt;    &amp;lt;Item&amp;gt;&lt;br /&gt;       &amp;lt;Text&amp;gt;Xbox 360 games&amp;lt;/Text&amp;gt;&lt;br /&gt;       &amp;lt;Description&amp;gt;Games and accessories&amp;lt;/Description&amp;gt;&lt;br /&gt;       &amp;lt;Url&amp;gt;http://www.example.com/games&amp;lt;/Url&amp;gt;&lt;br /&gt;    &amp;lt;/Item&amp;gt;&lt;br /&gt;  &amp;lt;/Section&amp;gt;&lt;br /&gt;&amp;lt;/SearchSuggestion&amp;gt;&lt;/pre&gt;
&lt;p&gt;So, I went on and created a handler that returns the search results as an XML document like the sample above. Unfortunately, I couldn't make it work in Internet Explorer; no matter what I typed in the search box, I always got a "An error occured" error message, and no results were shown.&lt;/p&gt;
&lt;p&gt;After spending a lot of time in debugging the handler, I finally figured out what was going wrong; I was omitting the namespace declaration in the &amp;lt;SearchSuggestion&amp;gt; element. I found many blog posts that were also omitting the namespace declaration on their samples, so I didn't think this would be the problem. So, if you are also getting the same error, check the namespace declaration, maybe this will do the trick for you as well.&lt;/p&gt;
&lt;p&gt;Also, you will want to make sure that the &amp;lt;Query&amp;gt; element has as text the actual query phrase as entered by the user, because if not Internet Explorer will again show that error message.&lt;/p&gt;&lt;img src="http://blogs.techaholics.gr/dstellakis/aggbug/7.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Dimosthenis Stellakis</dc:creator>
            <guid>http://blogs.techaholics.gr/dstellakis/archive/2010/04/09/ie8-search-provider.aspx</guid>
            <pubDate>Thu, 08 Apr 2010 22:24:01 GMT</pubDate>
            <wfw:comment>http://blogs.techaholics.gr/dstellakis/comments/7.aspx</wfw:comment>
            <comments>http://blogs.techaholics.gr/dstellakis/archive/2010/04/09/ie8-search-provider.aspx#feedback</comments>
            <slash:comments>55</slash:comments>
            <wfw:commentRss>http://blogs.techaholics.gr/dstellakis/comments/commentRss/7.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>
