<?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: Parsing FQL result</title>
	<atom:link href="http://blog.yoz.sk/2010/01/parsing-fql-result/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.yoz.sk/2010/01/parsing-fql-result/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=parsing-fql-result</link>
	<description>My life, my work</description>
	<lastBuildDate>Thu, 02 Feb 2012 13:37:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Facebook Graph API &#38; OAuth 2.0 &#38; Flash (update) at Jozef Chúťka&#39;s blog</title>
		<link>http://blog.yoz.sk/2010/01/parsing-fql-result/comment-page-1/#comment-2094</link>
		<dc:creator>Facebook Graph API &#38; OAuth 2.0 &#38; Flash (update) at Jozef Chúťka&#39;s blog</dc:creator>
		<pubDate>Thu, 03 Jun 2010 15:07:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yoz.sk/?p=928#comment-2094</guid>
		<description>[...] fqlComplete method, please read Parsing FQL result [...]</description>
		<content:encoded><![CDATA[<p>[...] fqlComplete method, please read Parsing FQL result [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex</title>
		<link>http://blog.yoz.sk/2010/01/parsing-fql-result/comment-page-1/#comment-462</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Tue, 02 Feb 2010 10:33:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yoz.sk/?p=928#comment-462</guid>
		<description>Hi Jozef,

Thanks for replying so quickly.

I am using the multi query to gather other information in additional queries, I just didn&#039;t paste that in to the code I showed you as I felt it was irrelevant.

Your tip about using the extra . has solved it. Now I feel stupid :P

Thank you very much for your help :)</description>
		<content:encoded><![CDATA[<p>Hi Jozef,</p>
<p>Thanks for replying so quickly.</p>
<p>I am using the multi query to gather other information in additional queries, I just didn&#8217;t paste that in to the code I showed you as I felt it was irrelevant.</p>
<p>Your tip about using the extra . has solved it. Now I feel stupid <img src='http://blog.yoz.sk/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Thank you very much for your help <img src='http://blog.yoz.sk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jozef Chúťka</title>
		<link>http://blog.yoz.sk/2010/01/parsing-fql-result/comment-page-1/#comment-459</link>
		<dc:creator>Jozef Chúťka</dc:creator>
		<pubDate>Mon, 01 Feb 2010 18:00:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yoz.sk/?p=928#comment-459</guid>
		<description>Hi Alex,
is there any purpose you call FqlMultiquery instead of just FqlQuery... it seems you only call one query. All results from FqlMultiquery comes in one xml string, each query has its own node (do not know it by heart but it is something like &lt;fql-query&gt;, you can debug your results)! So it corrupts your iteration. 
1. consider using FqlQuery instead of FqlMultiquery when calling only one fql
2. or change iteration &quot;for each(var message:XML in xml.stream)&quot; to &quot;for each(var message:XML in xml..stream)&quot; or something even more specific
3. or paste here xml result preview so I can help you</description>
		<content:encoded><![CDATA[<p>Hi Alex,<br />
is there any purpose you call FqlMultiquery instead of just FqlQuery&#8230; it seems you only call one query. All results from FqlMultiquery comes in one xml string, each query has its own node (do not know it by heart but it is something like <fql -query>, you can debug your results)! So it corrupts your iteration.<br />
1. consider using FqlQuery instead of FqlMultiquery when calling only one fql<br />
2. or change iteration &#8220;for each(var message:XML in xml.stream)&#8221; to &#8220;for each(var message:XML in xml..stream)&#8221; or something even more specific<br />
3. or paste here xml result preview so I can help you</fql></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex</title>
		<link>http://blog.yoz.sk/2010/01/parsing-fql-result/comment-page-1/#comment-457</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Mon, 01 Feb 2010 16:06:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yoz.sk/?p=928#comment-457</guid>
		<description>i can&#039;t get the xml to behave properly.

i am doing as you say, here is my code:

queries = { &quot;user_stream&quot;:&quot;SELECT post_id, actor_id, target_id, message, attachment FROM stream WHERE source_id IN (SELECT target_id FROM connection WHERE source_id=&quot; + 508510728 + &quot; AND is_following=1)&quot;

newsFeedCall = facebook.post(new FqlMultiquery(queries));
newsFeedCall.addEventListener(FacebookEvent.COMPLETE, gotResult);

private function gotResult(event : FacebookEvent) : void
		{
			var data : FacebookData = FacebookData(event.data);
			var xml : XML = new XML(data.rawResult);
			var ns : Namespace = xml.namespace();

			default xml namespace = ns;
			
			for each(var message:XML in xml.stream)
			{
				trace(message);
			}
		}

I am having real problems accessing any child nodes of the fql returned xml by name, i&#039;ve had to resort to using multiple .children() accessors which is less than ideal.

Any ideas?</description>
		<content:encoded><![CDATA[<p>i can&#8217;t get the xml to behave properly.</p>
<p>i am doing as you say, here is my code:</p>
<p>queries = { &#8220;user_stream&#8221;:&#8221;SELECT post_id, actor_id, target_id, message, attachment FROM stream WHERE source_id IN (SELECT target_id FROM connection WHERE source_id=&#8221; + 508510728 + &#8221; AND is_following=1)&#8221;</p>
<p>newsFeedCall = facebook.post(new FqlMultiquery(queries));<br />
newsFeedCall.addEventListener(FacebookEvent.COMPLETE, gotResult);</p>
<p>private function gotResult(event : FacebookEvent) : void<br />
		{<br />
			var data : FacebookData = FacebookData(event.data);<br />
			var xml : XML = new XML(data.rawResult);<br />
			var ns : Namespace = xml.namespace();</p>
<p>			default xml namespace = ns;</p>
<p>			for each(var message:XML in xml.stream)<br />
			{<br />
				trace(message);<br />
			}<br />
		}</p>
<p>I am having real problems accessing any child nodes of the fql returned xml by name, i&#8217;ve had to resort to using multiple .children() accessors which is less than ideal.</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

