<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Parse error: syntax error, unexpected T_OBJECT_OPERATOR RSS</title>
	<atom:link href="http://adnanrafe.wordpress.com/2008/01/08/parse-error-syntax-error-unexpected-t_object_operator-rss/feed/" rel="self" type="application/rss+xml" />
	<link>http://adnanrafe.wordpress.com/2008/01/08/parse-error-syntax-error-unexpected-t_object_operator-rss/</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 30 Apr 2009 22:00:11 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Andy Kos</title>
		<link>http://adnanrafe.wordpress.com/2008/01/08/parse-error-syntax-error-unexpected-t_object_operator-rss/#comment-16</link>
		<dc:creator>Andy Kos</dc:creator>
		<pubDate>Thu, 30 Apr 2009 22:00:11 +0000</pubDate>
		<guid isPermaLink="false">http://adnanrafe.wordpress.com/2008/01/08/parse-error-syntax-error-unexpected-t_object_operator-rss/#comment-16</guid>
		<description>thanks to verboze for this solution...

I have one server with php5 and one with php4 - and need my scripts to work on both servers - Im not in a position to upgrade the one running php4 at this time - its too disruptive.. and I needed a temp workaround for now

this did the job...</description>
		<content:encoded><![CDATA[<p>thanks to verboze for this solution&#8230;</p>
<p>I have one server with php5 and one with php4 &#8211; and need my scripts to work on both servers &#8211; Im not in a position to upgrade the one running php4 at this time &#8211; its too disruptive.. and I needed a temp workaround for now</p>
<p>this did the job&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: verboze</title>
		<link>http://adnanrafe.wordpress.com/2008/01/08/parse-error-syntax-error-unexpected-t_object_operator-rss/#comment-14</link>
		<dc:creator>verboze</dc:creator>
		<pubDate>Sat, 11 Apr 2009 18:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://adnanrafe.wordpress.com/2008/01/08/parse-error-syntax-error-unexpected-t_object_operator-rss/#comment-14</guid>
		<description>Old post, but for the benefit of those who may visit this site in the future... The solution is to break down the chain call into two calls:

xtemp = $titles-&gt;item(0);
xrealVar = xtemp -&gt;nodeValue;

But it&#039;s 2009, I would upgrade to php 5 if possible to take advantage of some of the new features :)</description>
		<content:encoded><![CDATA[<p>Old post, but for the benefit of those who may visit this site in the future&#8230; The solution is to break down the chain call into two calls:</p>
<p>xtemp = $titles-&gt;item(0);<br />
xrealVar = xtemp -&gt;nodeValue;</p>
<p>But it&#8217;s 2009, I would upgrade to php 5 if possible to take advantage of some of the new features <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohammad Salim</title>
		<link>http://adnanrafe.wordpress.com/2008/01/08/parse-error-syntax-error-unexpected-t_object_operator-rss/#comment-12</link>
		<dc:creator>Mohammad Salim</dc:creator>
		<pubDate>Mon, 21 Jul 2008 06:55:24 +0000</pubDate>
		<guid isPermaLink="false">http://adnanrafe.wordpress.com/2008/01/08/parse-error-syntax-error-unexpected-t_object_operator-rss/#comment-12</guid>
		<description>i have error in RSS 

ERROR: Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/sunkickc/public_html/dev/dipak/210608dipak_system/indiasquare/News/general.php on line 20


give me suggetion what i am doing

Scrip:load(&#039;http://news.google.co.in/nwshp?tab=in&amp;ned=in&amp;topic=n&amp;output=rss&#039;);
//get elements from &quot;&quot;
$channel=$xmlDoc-&gt;getElementsByTagName(&#039;channel&#039;)-&gt;item(0);
$title-&gt;item(0)-&gt;nodeValue;
$channel_title = $channel-&gt;getElementsByTagName(&#039;title&#039;)
-&gt;item(0)-&gt;childNodes-&gt;item(0)-&gt;nodeValue;
$channel_link = $channel-&gt;getElementsByTagName(&#039;link&#039;)
-&gt;item(0)-&gt;childNodes-&gt;item(0)-&gt;nodeValue;
$channel_desc = $channel-&gt;getElementsByTagName(&#039;description&#039;)
-&gt;item(0)-&gt;childNodes-&gt;item(0)-&gt;nodeValue;//output elements from &quot;&quot;
echo &quot;&quot;;
$x=$xmlDoc-&gt;getElementsByTagName(&#039;item&#039;);
for ($i=0; $iitem($i)-&gt;getElementsByTagName(&#039;title&#039;)
 -&gt;item(0)-&gt;childNodes-&gt;item(0)-&gt;nodeValue;
 $item_link=$x-&gt;item($i)-&gt;getElementsByTagName(&#039;link&#039;)
 -&gt;item(0)-&gt;childNodes-&gt;item(0)-&gt;nodeValue;
 $item_desc=$x-&gt;item($i)-&gt;getElementsByTagName(&#039;description&#039;)
 -&gt;item(0)-&gt;childNodes-&gt;item(0)-&gt;nodeValue;
 echo (&quot;&lt;a href=&#039;&quot; .$item_link .&quot;&#039; rel=&quot;nofollow&quot;&gt;&quot;.$item_title.&quot;&lt;/a&gt;&quot;);
echo ($item_desc);
// echo (&quot;&lt;a href=&#039;&quot; . $item_link . &quot;&#039; rel=&quot;nofollow&quot;&gt;&quot; . $item_title . &quot;&lt;/a&gt;&quot;);
 echo (&quot;&quot;);
// echo ($item_desc . &quot;&quot;);
 }
 echo &quot;&quot;;
 
?&gt;</description>
		<content:encoded><![CDATA[<p>i have error in RSS </p>
<p>ERROR: Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/sunkickc/public_html/dev/dipak/210608dipak_system/indiasquare/News/general.php on line 20</p>
<p>give me suggetion what i am doing</p>
<p>Scrip:load(&#8216;http://news.google.co.in/nwshp?tab=in&amp;ned=in&amp;topic=n&amp;output=rss&#8217;);<br />
//get elements from &#8220;&#8221;<br />
$channel=$xmlDoc-&gt;getElementsByTagName(&#8216;channel&#8217;)-&gt;item(0);<br />
$title-&gt;item(0)-&gt;nodeValue;<br />
$channel_title = $channel-&gt;getElementsByTagName(&#8216;title&#8217;)<br />
-&gt;item(0)-&gt;childNodes-&gt;item(0)-&gt;nodeValue;<br />
$channel_link = $channel-&gt;getElementsByTagName(&#8216;link&#8217;)<br />
-&gt;item(0)-&gt;childNodes-&gt;item(0)-&gt;nodeValue;<br />
$channel_desc = $channel-&gt;getElementsByTagName(&#8216;description&#8217;)<br />
-&gt;item(0)-&gt;childNodes-&gt;item(0)-&gt;nodeValue;//output elements from &#8220;&#8221;<br />
echo &#8220;&#8221;;<br />
$x=$xmlDoc-&gt;getElementsByTagName(&#8216;item&#8217;);<br />
for ($i=0; $iitem($i)-&gt;getElementsByTagName(&#8216;title&#8217;)<br />
 -&gt;item(0)-&gt;childNodes-&gt;item(0)-&gt;nodeValue;<br />
 $item_link=$x-&gt;item($i)-&gt;getElementsByTagName(&#8216;link&#8217;)<br />
 -&gt;item(0)-&gt;childNodes-&gt;item(0)-&gt;nodeValue;<br />
 $item_desc=$x-&gt;item($i)-&gt;getElementsByTagName(&#8216;description&#8217;)<br />
 -&gt;item(0)-&gt;childNodes-&gt;item(0)-&gt;nodeValue;<br />
 echo (&#8220;<a href='" .$item_link ."' rel="nofollow">&#8220;.$item_title.&#8221;</a>&#8220;);<br />
echo ($item_desc);<br />
// echo (&#8220;<a href='" . $item_link . "' rel="nofollow">&#8221; . $item_title . &#8220;</a>&#8220;);<br />
 echo (&#8220;&#8221;);<br />
// echo ($item_desc . &#8220;&#8221;);<br />
 }<br />
 echo &#8220;&#8221;;</p>
<p>?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adnan rafe</title>
		<link>http://adnanrafe.wordpress.com/2008/01/08/parse-error-syntax-error-unexpected-t_object_operator-rss/#comment-9</link>
		<dc:creator>adnan rafe</dc:creator>
		<pubDate>Tue, 18 Mar 2008 18:44:59 +0000</pubDate>
		<guid isPermaLink="false">http://adnanrafe.wordpress.com/2008/01/08/parse-error-syntax-error-unexpected-t_object_operator-rss/#comment-9</guid>
		<description>Well I too was trying for the same but cudnt find a solution so I think the possible solution would be to upgrade your PHP version to php5.</description>
		<content:encoded><![CDATA[<p>Well I too was trying for the same but cudnt find a solution so I think the possible solution would be to upgrade your PHP version to php5.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tommy</title>
		<link>http://adnanrafe.wordpress.com/2008/01/08/parse-error-syntax-error-unexpected-t_object_operator-rss/#comment-8</link>
		<dc:creator>Tommy</dc:creator>
		<pubDate>Tue, 18 Mar 2008 08:48:31 +0000</pubDate>
		<guid isPermaLink="false">http://adnanrafe.wordpress.com/2008/01/08/parse-error-syntax-error-unexpected-t_object_operator-rss/#comment-8</guid>
		<description>Well is there any alternative?</description>
		<content:encoded><![CDATA[<p>Well is there any alternative?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
