appagnellewoF
New Member
I want to create a XML-file with some data, but IE8 throwsout an error. With FF and Chrome my script works. Any idea why \[code\]col.appendChild(document.createTextNode(this))\[/code\] doesn't work with IE8?\[code\]var xmlDoc = $.parseXML("<?xml version=\"1.0\" encoding=\"UTF-8\"?><mapping-table/>");//Append rows with col to XML-document $.each(trData, function(){ var row = xmlDoc.createElement('row'); $.each(this, function(){ var col = xmlDoc.createElement('col'); col.appendChild(document.createTextNode(this)); row.appendChild(col); }); xmlDoc.documentElement.appendChild(row); });\[/code\]