Created
May 4, 2013 10:03
-
-
Save dimaxweb/5517033 to your computer and use it in GitHub Desktop.
Xml parsing without ActiveX in Internet Explorer.Works only in IE!!!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
funtion parseWitoutActiveX(str) | |
var doc= null; | |
var xmlIsland = document.createElement('xml'); | |
if(xmlIsland){ | |
xmlIsland.setAttribute('id','xmlActiveXGetRid'); | |
xmlIsland.innerHTML = str; | |
document.body.appendChild(xmlIsland); | |
var doc = xmlIsland.XMLDocument; | |
document.body.removeChild(xmlIsland); | |
return doc; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment