<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: how to store and retrieve your latest tweet from an XML file</title>
	<atom:link href="http://www.burnmind.com/howto/how-to-store-and-retrieve-your-latest-tweet-from-an-xml-file/feed" rel="self" type="application/rss+xml" />
	<link>http://www.burnmind.com/howto/how-to-store-and-retrieve-your-latest-tweet-from-an-xml-file</link>
	<description>useful info to burn into your mind</description>
	<lastBuildDate>Mon, 06 Sep 2010 09:29:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: burNMind</title>
		<link>http://www.burnmind.com/howto/how-to-store-and-retrieve-your-latest-tweet-from-an-xml-file/comment-page-1#comment-9992</link>
		<dc:creator>burNMind</dc:creator>
		<pubDate>Mon, 02 Nov 2009 23:17:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.burnmind.com/?p=348#comment-9992</guid>
		<description>Hello Justin. 

The url format of the Twitter Search API Method is:
http://search.twitter.com/search.format?q=query

The available formats are json and atom. I&#039;m gonna use atom for the following example:

$twitter_url = &#039;http://search.twitter.com/search.atom?q=burnmind&#039;;
$buffer = file_get_contents($twitter_url);
$xml = new SimpleXMLElement($buffer);
$entry = $xml -&gt; entry;
$title =  $entry -&gt; title;

Using this code you&#039;ll get the the title of the first search result for the term &quot;burnmind&quot; in the $title variable. 

If you want to see which other data fields you can use, execute the search url in your web browser and take a look at the source code of the resulted atom feed.

I hope this helps!</description>
		<content:encoded><![CDATA[<p>Hello Justin. </p>
<p>The url format of the Twitter Search API Method is:<br />
<a href="http://search.twitter.com/search.format?q=query" rel="nofollow">http://search.twitter.com/search.format?q=query</a></p>
<p>The available formats are json and atom. I&#8217;m gonna use atom for the following example:</p>
<p>$twitter_url = &#8216;http://search.twitter.com/search.atom?q=burnmind&#8217;;<br />
$buffer = file_get_contents($twitter_url);<br />
$xml = new SimpleXMLElement($buffer);<br />
$entry = $xml -> entry;<br />
$title =  $entry -> title;</p>
<p>Using this code you&#8217;ll get the the title of the first search result for the term &#8220;burnmind&#8221; in the $title variable. </p>
<p>If you want to see which other data fields you can use, execute the search url in your web browser and take a look at the source code of the resulted atom feed.</p>
<p>I hope this helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://www.burnmind.com/howto/how-to-store-and-retrieve-your-latest-tweet-from-an-xml-file/comment-page-1#comment-9869</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Thu, 29 Oct 2009 15:07:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.burnmind.com/?p=348#comment-9869</guid>
		<description>I&#039;ve been trying to use your code (thanks for posting it) to create an archive of search results.  I tried replacing the url being set to $buffer to:
&quot;http://search.twitter.com/search?q=search-term&quot; but get &#039;String could not be parsed as XML.&#039;  I&#039;ve been trying to figure out what the difference in results between a normal Twitter feed and the Twitter search is, and if you might have any ideas as how to resolve this.
Thanks for any help you can provide.
Justin</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been trying to use your code (thanks for posting it) to create an archive of search results.  I tried replacing the url being set to $buffer to:<br />
&#8220;http://search.twitter.com/search?q=search-term&#8221; but get &#8216;String could not be parsed as XML.&#8217;  I&#8217;ve been trying to figure out what the difference in results between a normal Twitter feed and the Twitter search is, and if you might have any ideas as how to resolve this.<br />
Thanks for any help you can provide.<br />
Justin</p>
]]></content:encoded>
	</item>
</channel>
</rss>
