<?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>
	<pubDate>Tue, 06 Jan 2009 21:24:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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'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(/\&#62;\s*?\&#60;");
}
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 &#60; xml.childNodes.length; loopIndex++) 
	{
		var currentNode = xml.childNodes[loopIndex];
		if (currentNode.nodeType == 1){RemoveWhitespace(currentNode);}
		if (((/^\s+$/.test(currentNode.nodeValue))) &#38;&#38; (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('Microsoft.XMLDOM');
                           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(&#8217;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 - 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("Microsoft.XMLDOM");
value.async = false;
value.load(document.getElementById('txtName').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(&#8221;Microsoft.XMLDOM&#8221;);<br />
value.async = false;<br />
value.load(document.getElementById(&#8217;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't so i'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>
	<item>
		<title>By: steven cook</title>
		<link>http://www.mikechambers.com/blog/2006/01/09/parsing-xml-in-javascript/comment-page-1/#comment-6471</link>
		<dc:creator>steven cook</dc:creator>
		<pubDate>Thu, 05 Oct 2006 15:40:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=934#comment-6471</guid>
		<description>White space and the DOM is frustrating. I've used these functions from Firefox development.

http://developer.mozilla.org/en/docs/Whitespace_in_the_DOM</description>
		<content:encoded><![CDATA[<p>White space and the DOM is frustrating. I&#8217;ve used these functions from Firefox development.</p>
<p><a href="http://developer.mozilla.org/en/docs/Whitespace_in_the_DOM" rel="nofollow">http://developer.mozilla.org/en/docs/Whitespace_in_the_DOM</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://www.mikechambers.com/blog/2006/01/09/parsing-xml-in-javascript/comment-page-1/#comment-6470</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Wed, 05 Jul 2006 22:16:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=934#comment-6470</guid>
		<description>The issue was cross browser XML parsing. Problems solved use Flash to load the XML and parse it using flash then pass the parsed informationuse to a JavaScript function that replaces the innerHTML of div tags.  A browser and platfom independent XML parser problem solved.</description>
		<content:encoded><![CDATA[<p>The issue was cross browser XML parsing. Problems solved use Flash to load the XML and parse it using flash then pass the parsed informationuse to a JavaScript function that replaces the innerHTML of div tags.  A browser and platfom independent XML parser problem solved.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
