<?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: Convert XML to Array using DOM extension in PHP5</title>
	<atom:link href="http://www.akchauhan.com/convert-xml-to-array-using-dom-extension-in-php5/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.akchauhan.com/convert-xml-to-array-using-dom-extension-in-php5/</link>
	<description>PHP, MySql, JavaScript, JQuery, Prototype, Drupal, HTML, CSS and more...</description>
	<lastBuildDate>Thu, 05 Jan 2012 12:42:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Steve</title>
		<link>http://www.akchauhan.com/convert-xml-to-array-using-dom-extension-in-php5/comment-page-1/#comment-60248</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 22 Dec 2011 16:33:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.akchauhan.com/?p=464#comment-60248</guid>
		<description>Handy implementation. Somerthing I&#039;ve noticed is that you might risk to lose data if you receive nodes of XML_CDATA_SECTION_NODE type. I&#039;m afraid such data might be silently dropped. Handling such nodes the same way as XML_TEXT_NODE nodes could be an idea to avoid this. My 2cc.</description>
		<content:encoded><![CDATA[<p>Handy implementation. Somerthing I&#8217;ve noticed is that you might risk to lose data if you receive nodes of XML_CDATA_SECTION_NODE type. I&#8217;m afraid such data might be silently dropped. Handling such nodes the same way as XML_TEXT_NODE nodes could be an idea to avoid this. My 2cc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laurynas</title>
		<link>http://www.akchauhan.com/convert-xml-to-array-using-dom-extension-in-php5/comment-page-1/#comment-52834</link>
		<dc:creator>Laurynas</dc:creator>
		<pubDate>Wed, 28 Sep 2011 06:17:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.akchauhan.com/?p=464#comment-52834</guid>
		<description>Very usefull class. Thank you!

I also modified it like gkirok suggested to remove those warnings</description>
		<content:encoded><![CDATA[<p>Very usefull class. Thank you!</p>
<p>I also modified it like gkirok suggested to remove those warnings</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gkirok</title>
		<link>http://www.akchauhan.com/convert-xml-to-array-using-dom-extension-in-php5/comment-page-1/#comment-49445</link>
		<dc:creator>gkirok</dc:creator>
		<pubDate>Mon, 08 Aug 2011 13:31:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.akchauhan.com/?p=464#comment-49445</guid>
		<description>Hi 
Nice class but has too many notices.
Please enable notices when you develope

so i added initializing result and isset check:
$result = &#039;&#039;;

if(isset($node-&gt;childNodes)) {
  foreach($node-&gt;childNodes as $child) {
    $occurance[$child-&gt;nodeName] = isset($occurance[$child-&gt;nodeName]) ? $occurance[$child-&gt;nodeName] + 1 : 1;
  }
}</description>
		<content:encoded><![CDATA[<p>Hi<br />
Nice class but has too many notices.<br />
Please enable notices when you develope</p>
<p>so i added initializing result and isset check:<br />
$result = &#8221;;</p>
<p>if(isset($node-&gt;childNodes)) {<br />
  foreach($node-&gt;childNodes as $child) {<br />
    $occurance[$child-&gt;nodeName] = isset($occurance[$child-&gt;nodeName]) ? $occurance[$child-&gt;nodeName] + 1 : 1;<br />
  }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Clarke</title>
		<link>http://www.akchauhan.com/convert-xml-to-array-using-dom-extension-in-php5/comment-page-1/#comment-35458</link>
		<dc:creator>Dan Clarke</dc:creator>
		<pubDate>Mon, 10 Jan 2011 12:34:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.akchauhan.com/?p=464#comment-35458</guid>
		<description>Brilliant script, works really really well with a current project we&#039;re working on.
However, it seems, after using this script, that it removes new lines (\n) from the values of the XML, is there anyway to get these back, or convert them to s?

Thanks!
-Dan.</description>
		<content:encoded><![CDATA[<p>Brilliant script, works really really well with a current project we&#8217;re working on.<br />
However, it seems, after using this script, that it removes new lines (\n) from the values of the XML, is there anyway to get these back, or convert them to s?</p>
<p>Thanks!<br />
-Dan.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

