<?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 XML in JavaScript?</title>
	<atom:link href="http://www.mikechambers.com/blog/2006/01/09/parsing-xml-in-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mikechambers.com/blog/2006/01/09/parsing-xml-in-javascript/</link>
	<description>code = joy</description>
	<lastBuildDate>Fri, 02 Dec 2011 01:36:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: Stir Fried</title>
		<link>http://www.mikechambers.com/blog/2006/01/09/parsing-xml-in-javascript/comment-page-1/#comment-26639</link>
		<dc:creator>Stir Fried</dc:creator>
		<pubDate>Thu, 21 Apr 2011 05:22:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=934#comment-26639</guid>
		<description>@Anti Idiot 
@Derek Jones

lol

&quot;Anti Idiot&quot; +1 &amp; agree with you in part (and silently chukle on the politically incorrect part)

Derek: IE has way too many CSS hang ups, paring hangups, SVG rendering hang ups! ..the only people who u&#039;ll find in your campaign are users who buy windows and are too scared to click &quot;Download Firefox&quot; coz they are computer illiterate.

..it would be a campaign of idiots!</description>
		<content:encoded><![CDATA[<p>@Anti Idiot<br />
@Derek Jones</p>
<p>lol</p>
<p>&#8220;Anti Idiot&#8221; +1 &amp; agree with you in part (and silently chukle on the politically incorrect part)</p>
<p>Derek: IE has way too many CSS hang ups, paring hangups, SVG rendering hang ups! ..the only people who u&#8217;ll find in your campaign are users who buy windows and are too scared to click &#8220;Download Firefox&#8221; coz they are computer illiterate.</p>
<p>..it would be a campaign of idiots!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blake Stearman</title>
		<link>http://www.mikechambers.com/blog/2006/01/09/parsing-xml-in-javascript/comment-page-1/#comment-22608</link>
		<dc:creator>Blake Stearman</dc:creator>
		<pubDate>Thu, 27 May 2010 19:05:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=934#comment-22608</guid>
		<description>@Marc Palau
Thanks for sharing that. I made use of your regex to solve a similar problem I had with removing whitespace between tags in Javascript.</description>
		<content:encoded><![CDATA[<p>@Marc Palau<br />
Thanks for sharing that. I made use of your regex to solve a similar problem I had with removing whitespace between tags in Javascript.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anti Idiot</title>
		<link>http://www.mikechambers.com/blog/2006/01/09/parsing-xml-in-javascript/comment-page-1/#comment-14866</link>
		<dc:creator>Anti Idiot</dc:creator>
		<pubDate>Fri, 07 Nov 2008 12:40:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=934#comment-14866</guid>
		<description>@Derek Jones

So its Firefox&#039;s fault for using a W3C standard whereas Microsoft uses its own ActiveX model to load an XML Object?


I am about to start an antiIdiot campaign. Join me! (No Derek Jones allow).</description>
		<content:encoded><![CDATA[<p>@Derek Jones</p>
<p>So its Firefox&#8217;s fault for using a W3C standard whereas Microsoft uses its own ActiveX model to load an XML Object?</p>
<p>I am about to start an antiIdiot campaign. Join me! (No Derek Jones allow).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc Palau</title>
		<link>http://www.mikechambers.com/blog/2006/01/09/parsing-xml-in-javascript/comment-page-1/#comment-11984</link>
		<dc:creator>Marc Palau</dc:creator>
		<pubDate>Wed, 23 Apr 2008 10:21:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=934#comment-11984</guid>
		<description>Easy way!

function ignoreWhite(node){
	node.innerHTML=node.innerHTML.replace(/\&gt;\s*?\&lt;&quot;);
}
window.onload=function(){
	ignoreWhite(document.body);
}</description>
		<content:encoded><![CDATA[<p>Easy way!</p>
<p>function ignoreWhite(node){<br />
	node.innerHTML=node.innerHTML.replace(/\&gt;\s*?\&lt;&#8221;);<br />
}<br />
window.onload=function(){<br />
	ignoreWhite(document.body);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony Bianco</title>
		<link>http://www.mikechambers.com/blog/2006/01/09/parsing-xml-in-javascript/comment-page-1/#comment-11565</link>
		<dc:creator>Tony Bianco</dc:creator>
		<pubDate>Tue, 18 Mar 2008 17:03:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=934#comment-11565</guid>
		<description>Try using this function. It actually helps by quite a bit to remove whitespace.

/***********************************
 * @method RemoveWhitespace
 * @param {Object} xml
************************************/
function RemoveWhitespace(xml)
{
	var loopIndex;
	for (loopIndex = 0; loopIndex &lt; xml.childNodes.length; loopIndex++) 
	{
		var currentNode = xml.childNodes[loopIndex];
		if (currentNode.nodeType == 1){RemoveWhitespace(currentNode);}
		if (((/^\s+$/.test(currentNode.nodeValue))) &amp;&amp; (currentNode.nodeType == 3))
		{
			xml.removeChild(xml.childNodes[loopIndex--]);
		}
	} 
}</description>
		<content:encoded><![CDATA[<p>Try using this function. It actually helps by quite a bit to remove whitespace.</p>
<p>/***********************************<br />
 * @method RemoveWhitespace<br />
 * @param {Object} xml<br />
************************************/<br />
function RemoveWhitespace(xml)<br />
{<br />
	var loopIndex;<br />
	for (loopIndex = 0; loopIndex &lt; xml.childNodes.length; loopIndex++)<br />
	{<br />
		var currentNode = xml.childNodes[loopIndex];<br />
		if (currentNode.nodeType == 1){RemoveWhitespace(currentNode);}<br />
		if (((/^\s+$/.test(currentNode.nodeValue))) &amp;&amp; (currentNode.nodeType == 3))<br />
		{<br />
			xml.removeChild(xml.childNodes[loopIndex--]);<br />
		}<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tulsa</title>
		<link>http://www.mikechambers.com/blog/2006/01/09/parsing-xml-in-javascript/comment-page-1/#comment-11230</link>
		<dc:creator>Tulsa</dc:creator>
		<pubDate>Thu, 21 Feb 2008 15:17:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=934#comment-11230</guid>
		<description>hi ,
       i m getting a response from server and going to parse it through ....
 if (window.ActiveXObject) {
                           var xmldom = new ActiveXObject(&#039;Microsoft.XMLDOM&#039;);
                           xmldom.loadXML(xml_txt);
                           return xmldom;
 }
but when i going to get the child node of xmldom its giving a null value but i m getting the child node in firefox . so can every one help me how to get childnode in ie 



thanx

tulsa</description>
		<content:encoded><![CDATA[<p>hi ,<br />
       i m getting a response from server and going to parse it through &#8230;.<br />
 if (window.ActiveXObject) {<br />
                           var xmldom = new ActiveXObject(&#8216;Microsoft.XMLDOM&#8217;);<br />
                           xmldom.loadXML(xml_txt);<br />
                           return xmldom;<br />
 }<br />
but when i going to get the child node of xmldom its giving a null value but i m getting the child node in firefox . so can every one help me how to get childnode in ie </p>
<p>thanx</p>
<p>tulsa</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek Jones</title>
		<link>http://www.mikechambers.com/blog/2006/01/09/parsing-xml-in-javascript/comment-page-1/#comment-10975</link>
		<dc:creator>Derek Jones</dc:creator>
		<pubDate>Tue, 29 Jan 2008 09:40:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=934#comment-10975</guid>
		<description>The only solution is to abolish Firefox and to use what is obvious, easy and safe - IExplorer! I am about to start an antiFirefox campaign. Join me!</description>
		<content:encoded><![CDATA[<p>The only solution is to abolish Firefox and to use what is obvious, easy and safe &#8211; IExplorer! I am about to start an antiFirefox campaign. Join me!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: krishna Bv</title>
		<link>http://www.mikechambers.com/blog/2006/01/09/parsing-xml-in-javascript/comment-page-1/#comment-8716</link>
		<dc:creator>krishna Bv</dc:creator>
		<pubDate>Mon, 02 Jul 2007 13:44:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=934#comment-8716</guid>
		<description>i have xml file named site.xml

i have to get the object of site.xml
 
i have wrote like this

value = new ActiveXObject(&quot;Microsoft.XMLDOM&quot;);
value.async = false;
value.load(document.getElementById(&#039;txtName&#039;).value);	

but it will not support in firefox
so please give a solution</description>
		<content:encoded><![CDATA[<p>i have xml file named site.xml</p>
<p>i have to get the object of site.xml</p>
<p>i have wrote like this</p>
<p>value = new ActiveXObject(&#8220;Microsoft.XMLDOM&#8221;);<br />
value.async = false;<br />
value.load(document.getElementById(&#8216;txtName&#8217;).value);	</p>
<p>but it will not support in firefox<br />
so please give a solution</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Binny V A</title>
		<link>http://www.mikechambers.com/blog/2006/01/09/parsing-xml-in-javascript/comment-page-1/#comment-6473</link>
		<dc:creator>Binny V A</dc:creator>
		<pubDate>Wed, 31 Jan 2007 15:55:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=934#comment-6473</guid>
		<description>A small xml2array() function will do the trick...
http://www.openjs.com/scripts/xml_parser/
</description>
		<content:encoded><![CDATA[<p>A small xml2array() function will do the trick&#8230;<br />
<a href="http://www.openjs.com/scripts/xml_parser/" rel="nofollow">http://www.openjs.com/scripts/xml_parser/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://www.mikechambers.com/blog/2006/01/09/parsing-xml-in-javascript/comment-page-1/#comment-6472</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Wed, 25 Oct 2006 08:37:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=934#comment-6472</guid>
		<description>yeah, solved if you can use flash in the page... i can&#039;t so i&#039;m stuck with javascript (!problemSolved)</description>
		<content:encoded><![CDATA[<p>yeah, solved if you can use flash in the page&#8230; i can&#8217;t so i&#8217;m stuck with javascript (!problemSolved)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

