homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

Problem with Open Search Description
URL not well formed

 8:26 pm on Jan 27, 2010 (gmt 0)

<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<Description>Example search</Description>
<Url type="text/html" template="http://www.google.de/cse?cx=partner-pub-example&q={searchTerms}&sa=Suche"/>
<Image width="16" height="16">http://www.pege.org/favicon.ico</Image>
<Developer>Jettero Heller</Developer>

When I open the file with Firefox, I get an

URL not well formed just after the first "&".
When I use the file to add an search provider
"There is a problem with the information provided"

When I remove the 2 "&", the XML, it shows in Firefox,
I can use the file to add an search provider by

<a href="javascript:window.external.AddSearchProvider('http://www.example.com/search.xml');">add the engine</a>

But natural, Google tells, the 400 Bad request

So what's wrong with the URL?



 8:33 pm on Jan 27, 2010 (gmt 0)

&amp; instead of & .

 8:38 pm on Jan 27, 2010 (gmt 0)


Now makes the mystic MSIE error message sense

Missing semicolon


 8:54 pm on Jan 27, 2010 (gmt 0)

One problem remaining:

This should work for German users.

When I enter in the search box a search term with German special characters like
This characters are wrong in the search.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / XML Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved