<?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: Simple XML to JSON with PHP</title>
	<atom:link href="http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/</link>
	<description>curiosities of development, life, the universe and everything</description>
	<lastBuildDate>Thu, 16 May 2013 18:55:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: David</title>
		<link>http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/#comment-1823</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sat, 04 May 2013 14:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/seanbiefeld/?p=30#comment-1823</guid>
		<description>this post is pretty decent.</description>
		<content:encoded><![CDATA[<p>this post is pretty decent.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Name</title>
		<link>http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/#comment-1822</link>
		<dc:creator>Name</dc:creator>
		<pubDate>Wed, 20 Mar 2013 18:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/seanbiefeld/?p=30#comment-1822</guid>
		<description>&quot; the web doesn&#039;t need more know-it-alls like you&quot;
Indeed, its already filled with dont-know-anythings like you and the aforementioned type doesnt help, either. The web will need experts and people who dont buggy / shitty code without understanding the mechanic behind it. It is non-trivial to convert something so fundamentally different like XML and JSON.</description>
		<content:encoded><![CDATA[<p>&#8221; the web doesn&#8217;t need more know-it-alls like you&#8221;<br />
Indeed, its already filled with dont-know-anythings like you and the aforementioned type doesnt help, either. The web will need experts and people who dont buggy / shitty code without understanding the mechanic behind it. It is non-trivial to convert something so fundamentally different like XML and JSON.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sameer Chourasia</title>
		<link>http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/#comment-1819</link>
		<dc:creator>Sameer Chourasia</dc:creator>
		<pubDate>Wed, 19 Dec 2012 12:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/seanbiefeld/?p=30#comment-1819</guid>
		<description>Nice...</description>
		<content:encoded><![CDATA[<p>Nice&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jedjhe</title>
		<link>http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/#comment-1817</link>
		<dc:creator>jedjhe</dc:creator>
		<pubDate>Thu, 22 Nov 2012 14:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/seanbiefeld/?p=30#comment-1817</guid>
		<description>Thank you so much...i have had sleepless night when XML responses are returned as a single string variable...but this greatly helped me...thanks.

my code to further help others :

$fileContents = file_get_contents($url);
$fileContents = trim(str_replace(&#039;&quot;&#039;, &quot;&#039;&quot;, $fileContents));

$simpleXml = simplexml_load_string($fileContents);
$json = json_encode($simpleXml);
$json = json_decode($json);

// then returned $json as array object variable</description>
		<content:encoded><![CDATA[<p>Thank you so much&#8230;i have had sleepless night when XML responses are returned as a single string variable&#8230;but this greatly helped me&#8230;thanks.</p>
<p>my code to further help others :</p>
<p>$fileContents = file_get_contents($url);<br />
$fileContents = trim(str_replace(&#8216;&#8221;&#8216;, &#8220;&#8216;&#8221;, $fileContents));</p>
<p>$simpleXml = simplexml_load_string($fileContents);<br />
$json = json_encode($simpleXml);<br />
$json = json_decode($json);</p>
<p>// then returned $json as array object variable</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Just a guy</title>
		<link>http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/#comment-1816</link>
		<dc:creator>Just a guy</dc:creator>
		<pubDate>Thu, 15 Nov 2012 18:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/seanbiefeld/?p=30#comment-1816</guid>
		<description>How about you take it for what it is.  Read the tutorial, try it out for yourself.  Post any comments for improvement.  Just don&#039;t be an asshole @Nahuels, the web doesn&#039;t need more know-it-alls like you.</description>
		<content:encoded><![CDATA[<p>How about you take it for what it is.  Read the tutorial, try it out for yourself.  Post any comments for improvement.  Just don&#8217;t be an asshole @Nahuels, the web doesn&#8217;t need more know-it-alls like you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wrivas</title>
		<link>http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/#comment-1812</link>
		<dc:creator>Wrivas</dc:creator>
		<pubDate>Mon, 20 Aug 2012 16:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/seanbiefeld/?p=30#comment-1812</guid>
		<description>But the function is not &quot;static&quot; to access with that way:
   XmlToJson::Parse(&quot;http://www.nfl.com/liveupdate/scorestrip/ss.xml&quot;);

should be:
   XmlToJson-&gt;Parse(&quot;http://www.nfl.com/liveupdate/scorestrip/ss.xml&quot;);

Or add &quot;static&quot; statement to function :D
</description>
		<content:encoded><![CDATA[<p>But the function is not &#8220;static&#8221; to access with that way:<br />
   XmlToJson::Parse(&#8220;http://www.nfl.com/liveupdate/scorestrip/ss.xml&#8221;);</p>
<p>should be:<br />
   XmlToJson-&gt;Parse(&#8220;http://www.nfl.com/liveupdate/scorestrip/ss.xml&#8221;);</p>
<p>Or add &#8220;static&#8221; statement to function <img src='http://lostechies.com/seanbiefeld/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nahuels</title>
		<link>http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/#comment-1807</link>
		<dc:creator>Nahuels</dc:creator>
		<pubDate>Wed, 13 Jun 2012 02:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/seanbiefeld/?p=30#comment-1807</guid>
		<description>true! a lot of trash in the web. Please author, resear a little bit before writing a tutorial. Thanks! </description>
		<content:encoded><![CDATA[<p>true! a lot of trash in the web. Please author, resear a little bit before writing a tutorial. Thanks! </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Searock Ruzario</title>
		<link>http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/#comment-1802</link>
		<dc:creator>Searock Ruzario</dc:creator>
		<pubDate>Wed, 18 Apr 2012 09:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/seanbiefeld/?p=30#comment-1802</guid>
		<description>Thanks a lot.</description>
		<content:encoded><![CDATA[<p>Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vahid Rajaei</title>
		<link>http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/#comment-1793</link>
		<dc:creator>Vahid Rajaei</dc:creator>
		<pubDate>Thu, 22 Mar 2012 14:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/seanbiefeld/?p=30#comment-1793</guid>
		<description>Amazing dude - thanx</description>
		<content:encoded><![CDATA[<p>Amazing dude &#8211; thanx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guest</title>
		<link>http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/#comment-1791</link>
		<dc:creator>Guest</dc:creator>
		<pubDate>Sat, 18 Feb 2012 18:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/seanbiefeld/?p=30#comment-1791</guid>
		<description>cool man!!! Thanks</description>
		<content:encoded><![CDATA[<p>cool man!!! Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
