The code looks correct but I get parsing errors

26 views
Skip to first unread message

Sol Johnston

unread,
Aug 18, 2015, 11:30:31 PM8/18/15
to OpenSearch
The code looks correct to me but I get XML parsing errors.  There has to be a way to resolve the   &pr=GG   part of the code to make it work.  I think that is where the errors come from and I have to have it in the code.  I would appreciate any help on the matter - Thanks so much!

<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">

<ShortName>goodgopher<ShortName>
<Description>GoodGopher Search Engine For Truth Seekers<Description>

<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16">data:image/x-icon;base64,http://www.goodgopher.com/images/GoodGopher.ico</Image>
<Url type="text/html" method="GET" template="http://goodgopher.com/SearchResults.asp?query={searchTerms}&amp;pr=GG">

<SearchForm>http://goodgopher.com</SearchForm>
</SearchPlugin>


DeWitt Clinton

unread,
Aug 18, 2015, 11:45:17 PM8/18/15
to soljohn...@gmail.co, opens...@googlegroups.com
Hi Sol,

I checked it at validator.w3.org and the first error reported is that the <Url> element is not closed.

There are a few other similar parsing errors (Description and ShortName have the same issue), so you may want to try validating it there and see what you find. 

Also, I don't expect a XML validator to catch this, but the <Image> element should probably just contain the URL itself, not the "data:image/x-icon;base64" part.

Good luck, and best regards,

-DeWitt


--
You received this message because you are subscribed to the Google Groups "OpenSearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opensearch+...@googlegroups.com.
To post to this group, send email to opens...@googlegroups.com.
Visit this group at http://groups.google.com/group/opensearch.
For more options, visit https://groups.google.com/d/optout.

DeWitt Clinton

unread,
Aug 20, 2015, 9:16:52 AM8/20/15
to soljohn...@gmail.com, opens...@googlegroups.com
[fixing the address]
Reply all
Reply to author
Forward
0 new messages