View Single Post
Old 03-16-2010, 09:28 AM   PM User | #6
shanker.nair
New to the CF scene

 
Join Date: Mar 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
shanker.nair is an unknown quantity at this point
Quote:
Originally Posted by rnd me View Post
sorry, i thought you got it but it had spaces around it.
post the code you're using and i'll tell you what's wrong.
Hi rnd me,

Herez the code that was used to parse the <howout> tag -

Code:
if (window.XMLHttpRequest)
  {
  xhttp=new XMLHttpRequest()
  }
else
  {
  xhttp=new ActiveXObject("Microsoft.XMLHTTP")
  }
xhttp.open("GET","ScoreCard.xml",false);
xhttp.send("");
xmlDoc=xhttp.responseXML;


var temp=xmlDoc.getElementsByTagName("howout")[0];

if(temp.childNodes[0])
{
	var tempvalue = temp.childNodes[0];
	alert("Value in tempvalue: " + tempvalue); // Shows Value in tempvalue: [object Text]
	alert("Length: " + tempvalue.length); // Shows Length: 17
	alert("Value: " + tempvalue.nodeType); // Shows Value: 3
}
else
{
	alert("No Value in tag!");
}
I need to extract the "c" in <![CDATA[ c ]]>.
Please help.

Regards,
Shanker
shanker.nair is offline   Reply With Quote