The Problem:
Trying to read the "toolText" value.

The XML:
Code:
<dataSet id="Cumulative Spend" seriesName="Cumulative Spend">
		<set id="setID130" x="130" y="10152.00" toolText="A, Balaji   Days:130   Spend:10152.00"/>
		<set id="setID191" x="191" y="7472.27" toolText="Amason, Joseph   Days:191   Spend:7472.27"/>
		<set id="setID73" x="73" y="3360.00" toolText="Ambati, Srikanth   Days:73   Spend:3360.00"/>
</dataset>
The Javascript:
Code:
		//Now generate a tabular format of data returned as array
		var arrData = ourChart.getData();
		//If no data has been selected return an error
		if (arrData.length==0){
			alert("Please select atleast one data point on chart by drawing a rectangle");
			return;
		}
		var i,j;
		//Now we'll generate an HTML string for it
		var strHTML = "<table width='100%' align='center' cellpadding='2' class='text'>";
		for (i=0; i<arrData.length; i++){
			//Iterate through each row of data
			//First column contains the dataset id.
			//Add dataset id
			var dataSetID = arrData[i][0];
			strHTML = strHTML + "<tr><td bgColor='#F1F1F1'><b>" + dataSetID + "</b></td><td>";
			var infoSet = arrData[i][1];
			alert (infoSet);
//arrData[i][0] returns the string "Cumulative Spend"
//arrData[i][1] returns the setID as a string
	
			//Iterate through all the data in this dataset
			for (j=1; j<arrData[i].length; j++){
				//Add data to HTML code
				strHTML = strHTML + arrData[i][j];
				//Add separator comma to all but last item
				if (j<arrData[i].length-1){
					strHTML = strHTML  + ", ";
				}				
			}
			strHTML = strHTML + "</td></tr>";
		}
		//Close table tag
		strHTML = strHTML + "</table>";
		//Write the data to the required div
		var tableDiv = document.getElementById('tableDataContainer');	
		tableDiv.innerHTML = strHTML;
	}
I want to pull out the info contained under toolText, but don't know how to access it. Tried using getAttribute, but not sure if that's the right call to use on an array element that's pulling XML. Thanks in advance.