homepage Welcome to WebmasterWorld Guest from 54.161.190.9
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
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
jetteroheller




msg:4069296
 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/">
<ShortName>Example</ShortName>
<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>
<Contact>Jettero.Heller@example.com</Contact>
</OpenSearchDescription>

When I open the file with Firefox, I get an

Error
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?

 

encyclo




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

Use
&amp; instead of & .
jetteroheller




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

Thanks!

Now makes the mystic MSIE error message sense

Missing semicolon

jetteroheller




msg:4069316
 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