<?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: XML to Array</title>
	<atom:link href="http://whoooop.co.uk/2005/03/20/xml-to-array/feed/" rel="self" type="application/rss+xml" />
	<link>http://whoooop.co.uk/2005/03/20/xml-to-array/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=xml-to-array</link>
	<description>Random mutterings from the insane</description>
	<lastBuildDate>Thu, 04 Feb 2010 04:45:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: mick</title>
		<link>http://whoooop.co.uk/2005/03/20/xml-to-array/comment-page-1/#comment-14688</link>
		<dc:creator>mick</dc:creator>
		<pubDate>Wed, 23 Dec 2009 21:11:08 +0000</pubDate>
		<guid isPermaLink="false">http://whoooop.co.uk/2005/03/20/xml-to-array/#comment-14688</guid>
		<description>What a great script! Thanks!</description>
		<content:encoded><![CDATA[<p>What a great script! Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phpguy</title>
		<link>http://whoooop.co.uk/2005/03/20/xml-to-array/comment-page-1/#comment-14664</link>
		<dc:creator>phpguy</dc:creator>
		<pubDate>Tue, 29 Sep 2009 16:28:30 +0000</pubDate>
		<guid isPermaLink="false">http://whoooop.co.uk/2005/03/20/xml-to-array/#comment-14664</guid>
		<description>it so helpful,thanks a ton</description>
		<content:encoded><![CDATA[<p>it so helpful,thanks a ton</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dave</title>
		<link>http://whoooop.co.uk/2005/03/20/xml-to-array/comment-page-1/#comment-14582</link>
		<dc:creator>dave</dc:creator>
		<pubDate>Fri, 07 Aug 2009 12:18:12 +0000</pubDate>
		<guid isPermaLink="false">http://whoooop.co.uk/2005/03/20/xml-to-array/#comment-14582</guid>
		<description>So where is the link to get the script??</description>
		<content:encoded><![CDATA[<p>So where is the link to get the script??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rockstar</title>
		<link>http://whoooop.co.uk/2005/03/20/xml-to-array/comment-page-1/#comment-14568</link>
		<dc:creator>Rockstar</dc:creator>
		<pubDate>Fri, 10 Jul 2009 09:06:40 +0000</pubDate>
		<guid isPermaLink="false">http://whoooop.co.uk/2005/03/20/xml-to-array/#comment-14568</guid>
		<description>Thanks for the simple n elegent script !!!</description>
		<content:encoded><![CDATA[<p>Thanks for the simple n elegent script !!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Taste of Tech &#124; SaveLinks</title>
		<link>http://whoooop.co.uk/2005/03/20/xml-to-array/comment-page-1/#comment-14535</link>
		<dc:creator>Taste of Tech &#124; SaveLinks</dc:creator>
		<pubDate>Fri, 13 Mar 2009 17:37:19 +0000</pubDate>
		<guid isPermaLink="false">http://whoooop.co.uk/2005/03/20/xml-to-array/#comment-14535</guid>
		<description>[...] script is here, if you&#8217;re interested. I should also mention that it uses this script to parse the XML data. I can&#8217;t guarantee that it&#8217;ll be of any use to anyone else, but [...]</description>
		<content:encoded><![CDATA[<p>[...] script is here, if you&#8217;re interested. I should also mention that it uses this script to parse the XML data. I can&#8217;t guarantee that it&#8217;ll be of any use to anyone else, but [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Taste of Tech &#187; Blog Archive &#187; SaveLinks</title>
		<link>http://whoooop.co.uk/2005/03/20/xml-to-array/comment-page-1/#comment-14534</link>
		<dc:creator>Taste of Tech &#187; Blog Archive &#187; SaveLinks</dc:creator>
		<pubDate>Wed, 11 Mar 2009 16:53:03 +0000</pubDate>
		<guid isPermaLink="false">http://whoooop.co.uk/2005/03/20/xml-to-array/#comment-14534</guid>
		<description>[...] script is here, if you&#8217;re interested. I should also mention that it uses this script to parse the XML data. I can&#8217;t guarantee that it&#8217;ll be of any use to anyone else, but [...]</description>
		<content:encoded><![CDATA[<p>[...] script is here, if you&#8217;re interested. I should also mention that it uses this script to parse the XML data. I can&#8217;t guarantee that it&#8217;ll be of any use to anyone else, but [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael G</title>
		<link>http://whoooop.co.uk/2005/03/20/xml-to-array/comment-page-1/#comment-217</link>
		<dc:creator>Michael G</dc:creator>
		<pubDate>Thu, 02 Mar 2006 01:34:43 +0000</pubDate>
		<guid isPermaLink="false">http://whoooop.co.uk/2005/03/20/xml-to-array/#comment-217</guid>
		<description>Nice script

If you want to use this with PHP5 change line 25:

$result [$vals [$i][&#039;tag&#039;]] = array_merge ($attributes, GetChildren ($vals, $i, &#039;open&#039;));

To

$result [$vals [$i][&#039;tag&#039;]] = array_merge ((array)$attributes, (array)GetChildren ($vals, $i, &#039;open&#039;));</description>
		<content:encoded><![CDATA[<p>Nice script</p>
<p>If you want to use this with PHP5 change line 25:</p>
<p>$result [$vals [$i]['tag']] = array_merge ($attributes, GetChildren ($vals, $i, &#8216;open&#8217;));</p>
<p>To</p>
<p>$result [$vals [$i]['tag']] = array_merge ((array)$attributes, (array)GetChildren ($vals, $i, &#8216;open&#8217;));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://whoooop.co.uk/2005/03/20/xml-to-array/comment-page-1/#comment-167</link>
		<dc:creator>John</dc:creator>
		<pubDate>Thu, 09 Feb 2006 20:39:16 +0000</pubDate>
		<guid isPermaLink="false">http://whoooop.co.uk/2005/03/20/xml-to-array/#comment-167</guid>
		<description>Hi,

Great script, It is doing exactly what I need it to do. I have a couple questions, and I have to first say I know just enough php to get me in trouble.


Im using your script in my wordpress blog and have 3 areas that the results will appear in  left side bar (lside.php) the content or post section (index.php) and the right side (rside.php)

What I want to do is have results 1,2 &amp; 3 in my left side bar,   4-9 in the center (index) and 1- 15 in the right side bar (rside.php)


To complicate the issue a variable will be place in the xml feed url that is being fetched.

I have been able to pass the var to the url xml string and everything worked - the data was passed back flawlessly.


Here is where my stupidity comes into play.

How do i take a var and echo the data on the page.

The file being returned is:

Heading, url, uri, description  but keep in mind this needs to be placed in 3 different areas of the page and three files are included to actually build the page.


Any help you can give me will be greatly appreciated as I have been searching for a script that would do this for some time now.

Thanks John
 </description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Great script, It is doing exactly what I need it to do. I have a couple questions, and I have to first say I know just enough php to get me in trouble.</p>
<p>Im using your script in my wordpress blog and have 3 areas that the results will appear in  left side bar (lside.php) the content or post section (index.php) and the right side (rside.php)</p>
<p>What I want to do is have results 1,2 &amp; 3 in my left side bar,   4-9 in the center (index) and 1- 15 in the right side bar (rside.php)</p>
<p>To complicate the issue a variable will be place in the xml feed url that is being fetched.</p>
<p>I have been able to pass the var to the url xml string and everything worked &#8211; the data was passed back flawlessly.</p>
<p>Here is where my stupidity comes into play.</p>
<p>How do i take a var and echo the data on the page.</p>
<p>The file being returned is:</p>
<p>Heading, url, uri, description  but keep in mind this needs to be placed in 3 different areas of the page and three files are included to actually build the page.</p>
<p>Any help you can give me will be greatly appreciated as I have been searching for a script that would do this for some time now.</p>
<p>Thanks John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kris</title>
		<link>http://whoooop.co.uk/2005/03/20/xml-to-array/comment-page-1/#comment-145</link>
		<dc:creator>kris</dc:creator>
		<pubDate>Wed, 18 Jan 2006 14:16:21 +0000</pubDate>
		<guid isPermaLink="false">http://whoooop.co.uk/2005/03/20/xml-to-array/#comment-145</guid>
		<description>Very useful script - thanks.

I have one small problem with the script though.

If there is only 1 child element the ARRAY looks like this:
---------------------------
Array
(
    [sync] =&gt; Array
        (
            [learner_id] =&gt; 1234
            [learner_name] =&gt; Father Christmas
            [password] =&gt; hoho
            [client_id] =&gt; Companyname
            [device_id] =&gt; 023408fsdf8032
            [last_sync] =&gt; 20051214132201
            [event] =&gt; Array
                (
                    [core] =&gt; course details
                    [engine_name] =&gt; ultaextreme
                    [engine_version] =&gt; 1.0.0
                    [extended] =&gt; answers
                )
        )
)
---------------------------

I REALLY NEED IT TO LOOK LIKE THIS:
---------------------------
Array
(
    [sync] =&gt; Array
        (
            [learner_id] =&gt; 1234
            [learner_name] =&gt; Father Christmas
            [password] =&gt; hoho
            [client_id] =&gt; Companyname
            [device_id] =&gt; 023408fsdf8032
            [last_sync] =&gt; 20051214132201
            [event] =&gt; Array
                (
                    [0] =&gt; Array
                        (
                            [core] =&gt; course details
                            [engine_name] =&gt; ultaextreme
                            [engine_version] =&gt; 1.0.0
                            [extended] =&gt; answers
                        )

                )

        )

)
---------------------------
How can this be done?

Thanks again for a great script...</description>
		<content:encoded><![CDATA[<p>Very useful script &#8211; thanks.</p>
<p>I have one small problem with the script though.</p>
<p>If there is only 1 child element the ARRAY looks like this:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Array<br />
(<br />
    [sync] =&gt; Array<br />
        (<br />
            [learner_id] =&gt; 1234<br />
            [learner_name] =&gt; Father Christmas<br />
            [password] =&gt; hoho<br />
            [client_id] =&gt; Companyname<br />
            [device_id] =&gt; 023408fsdf8032<br />
            [last_sync] =&gt; 20051214132201<br />
            [event] =&gt; Array<br />
                (<br />
                    [core] =&gt; course details<br />
                    [engine_name] =&gt; ultaextreme<br />
                    [engine_version] =&gt; 1.0.0<br />
                    [extended] =&gt; answers<br />
                )<br />
        )<br />
)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>I REALLY NEED IT TO LOOK LIKE THIS:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Array<br />
(<br />
    [sync] =&gt; Array<br />
        (<br />
            [learner_id] =&gt; 1234<br />
            [learner_name] =&gt; Father Christmas<br />
            [password] =&gt; hoho<br />
            [client_id] =&gt; Companyname<br />
            [device_id] =&gt; 023408fsdf8032<br />
            [last_sync] =&gt; 20051214132201<br />
            [event] =&gt; Array<br />
                (<br />
                    [0] =&gt; Array<br />
                        (<br />
                            [core] =&gt; course details<br />
                            [engine_name] =&gt; ultaextreme<br />
                            [engine_version] =&gt; 1.0.0<br />
                            [extended] =&gt; answers<br />
                        )</p>
<p>                )</p>
<p>        )</p>
<p>)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
How can this be done?</p>
<p>Thanks again for a great script&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cid73</title>
		<link>http://whoooop.co.uk/2005/03/20/xml-to-array/comment-page-1/#comment-83</link>
		<dc:creator>cid73</dc:creator>
		<pubDate>Thu, 26 May 2005 09:09:43 +0000</pubDate>
		<guid isPermaLink="false">http://whoooop.co.uk/2005/03/20/xml-to-array/#comment-83</guid>
		<description>very useful and very nice code, thanks, CaShy!

a little problem:

somehow I need to keep original aspect of the data in my xml file to output, however, when I change 

xml_parser_set_option ($parser, XML_OPTION_SKIP_WHITE, 1)

into

xml_parser_set_option ($parser, XML_OPTION_SKIP_WHITE, 0)

and it can&#039;t work.

pls fix this problem, I&#039;ll be still waiting. Thanx again(and sorry for my poor English).</description>
		<content:encoded><![CDATA[<p>very useful and very nice code, thanks, CaShy!</p>
<p>a little problem:</p>
<p>somehow I need to keep original aspect of the data in my xml file to output, however, when I change </p>
<p>xml_parser_set_option ($parser, XML_OPTION_SKIP_WHITE, 1)</p>
<p>into</p>
<p>xml_parser_set_option ($parser, XML_OPTION_SKIP_WHITE, 0)</p>
<p>and it can&#8217;t work.</p>
<p>pls fix this problem, I&#8217;ll be still waiting. Thanx again(and sorry for my poor English).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Watches</title>
		<link>http://whoooop.co.uk/2005/03/20/xml-to-array/comment-page-1/#comment-82</link>
		<dc:creator>Watches</dc:creator>
		<pubDate>Mon, 23 May 2005 21:44:44 +0000</pubDate>
		<guid isPermaLink="false">http://whoooop.co.uk/2005/03/20/xml-to-array/#comment-82</guid>
		<description>Wow, worked like a charm ! Thanks a lot, mate - i just spent an hour trying to get an XML feed to work and needed 5 minutes with your script :)</description>
		<content:encoded><![CDATA[<p>Wow, worked like a charm ! Thanks a lot, mate &#8211; i just spent an hour trying to get an XML feed to work and needed 5 minutes with your script <img src='http://whoooop.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: simon</title>
		<link>http://whoooop.co.uk/2005/03/20/xml-to-array/comment-page-1/#comment-81</link>
		<dc:creator>simon</dc:creator>
		<pubDate>Fri, 20 May 2005 17:59:19 +0000</pubDate>
		<guid isPermaLink="false">http://whoooop.co.uk/2005/03/20/xml-to-array/#comment-81</guid>
		<description>wow,wonderful~
thx u very much,that&#039;s what I needed</description>
		<content:encoded><![CDATA[<p>wow,wonderful~<br />
thx u very much,that&#8217;s what I needed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jose</title>
		<link>http://whoooop.co.uk/2005/03/20/xml-to-array/comment-page-1/#comment-80</link>
		<dc:creator>Jose</dc:creator>
		<pubDate>Fri, 22 Apr 2005 09:02:47 +0000</pubDate>
		<guid isPermaLink="false">http://whoooop.co.uk/2005/03/20/xml-to-array/#comment-80</guid>
		<description>Very useful code but I had problems with empty xml files, for example:

&lt;NAME&gt; &lt;/NAME&gt;

I fix the problem changing the call to the funtion GetChildren in the main function....

----- original ------
$result [$vals [$i][&#039;tag&#039;]] = array_merge ($attributes, GetChildren ($vals, $i, &#039;open&#039;));
----- fixed --------
$result [$vals [$i][&#039;tag&#039;]] = array_merge ($attributes, GetChildren ($vals, $i, $vals[$i][&#039;type&#039;]));

Sorry for my poor english and thanks for the code.</description>
		<content:encoded><![CDATA[<p>Very useful code but I had problems with empty xml files, for example:</p>
<p>&lt;NAME&gt; &lt;/NAME&gt;</p>
<p>I fix the problem changing the call to the funtion GetChildren in the main function&#8230;.</p>
<p>&#8212;&#8211; original &#8212;&#8212;<br />
$result [$vals [$i]['tag']] = array_merge ($attributes, GetChildren ($vals, $i, &#8216;open&#8217;));<br />
&#8212;&#8211; fixed &#8212;&#8212;&#8211;<br />
$result [$vals [$i]['tag']] = array_merge ($attributes, GetChildren ($vals, $i, $vals[$i]['type']));</p>
<p>Sorry for my poor english and thanks for the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ibrahim</title>
		<link>http://whoooop.co.uk/2005/03/20/xml-to-array/comment-page-1/#comment-69</link>
		<dc:creator>ibrahim</dc:creator>
		<pubDate>Tue, 19 Apr 2005 09:41:45 +0000</pubDate>
		<guid isPermaLink="false">http://whoooop.co.uk/2005/03/20/xml-to-array/#comment-69</guid>
		<description>with this simple xml file , i get all attributes but not the name of the city

exemple : 


  BC 
  516521 
  -1212891 
  -800 
  1 
  </description>
		<content:encoded><![CDATA[<p>with this simple xml file , i get all attributes but not the name of the city</p>
<p>exemple : </p>
<p>  BC<br />
  516521<br />
  -1212891<br />
  -800<br />
  1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ibrahim</title>
		<link>http://whoooop.co.uk/2005/03/20/xml-to-array/comment-page-1/#comment-68</link>
		<dc:creator>ibrahim</dc:creator>
		<pubDate>Tue, 19 Apr 2005 09:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://whoooop.co.uk/2005/03/20/xml-to-array/#comment-68</guid>
		<description>any idea of how to fix the problem that Michael pointed out ?

Thanx</description>
		<content:encoded><![CDATA[<p>any idea of how to fix the problem that Michael pointed out ?</p>
<p>Thanx</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->