I want to get the values in array and pass it to some location
<pre><code>&lt;script type="text/javascript"&gt;
     if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
         xmlhttp = new XMLHttpRequest();
     }
     else {// code for IE6, IE5
         xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
     }
     xmlhttp.open("GET", "products.xml", false);
     xmlhttp.send();`enter code here`
     xmlDoc = xmlhttp.responseXML;

     document.write("&lt;table border='1'&gt;");
     var x = xmlDoc.getElementsByTagName("productItem");
     for (i = 0; i &lt; x.length; i++) {
         document.write("&lt;tr&gt;&lt;td&gt;");
         document.write(x[i].getElementsByTagName("ProName")[0].childNodes[0].nodeValue);
         document.write("&lt;/td&gt;&lt;td&gt;");
         document.write(x[i].getElementsByTagName("ProRate")[0].childNodes[0].nodeValue);
         document.write("&lt;/td&gt;&lt;/tr&gt;");

     }
     document.write("&lt;/table&gt;");
&lt;/script&gt;
</code></pre>

<p>This is my JavaScript coding.. I am fetching the values from XML file..
so i want to get these values from an array and to pass in some other place</p>
