V
VUNETdotUS
How do I parse XML in Safari? I use E4X for Firefox. I can use IE-like
parser but replace .text with .textContent. However, I have problems
with xmlObj.childNodes(i).firstChild. I cannot use
xmlObj.childNodes(i).firstChild.textContent here:
xmlObj=xmlDoc.documentElement;
for(i=0;i<xmlObj.childNodes.length;i++)
{
alert(xmlObj.childNodes(i).text);
//alert(xmlObj.childNodes(i).textContent); for Safari
//alert(xmlObj.childNodes(i).firstChild.textContent); DOES NOT WORK
for Safari
}
Thanks
parser but replace .text with .textContent. However, I have problems
with xmlObj.childNodes(i).firstChild. I cannot use
xmlObj.childNodes(i).firstChild.textContent here:
xmlObj=xmlDoc.documentElement;
for(i=0;i<xmlObj.childNodes.length;i++)
{
alert(xmlObj.childNodes(i).text);
//alert(xmlObj.childNodes(i).textContent); for Safari
//alert(xmlObj.childNodes(i).firstChild.textContent); DOES NOT WORK
for Safari
}
Thanks