help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: http-get and GDS (Google Desktop Search)


From: Mathias Dahl
Subject: Re: http-get and GDS (Google Desktop Search)
Date: Wed, 08 Feb 2006 16:32:19 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)

Klaus Straubinger <KSNetz@UseNet.ArcorNews.DE> writes:

> Now if you have a look at what url-insert-file-contents does, you will
> see that you can save several lines of code by using it.
>
> (defun gds-get-xml-response (search)
>   "Do a Google Desktop Search for SEARCH, return result as xml"
>   (with-temp-buffer
>     (url-insert-file-contents
>      (format "%s?q=%s&format=xml" gds-base-url search))
>     (goto-char (point-min))
>     (if (not (search-forward-regexp "^<\\?xml" nil t))
>         (message "No XML data from GDS search")
>       (xml-parse-region (match-beginning 0) (point-max)))))

Ooops! :)

Thanks!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]