Quote:
Originally Posted by rnd me
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