Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Create A Cross Browser Compatible Dom Document In Javascript

DZone's Guide to

Create A Cross Browser Compatible Dom Document In Javascript

·
Free Resource
// create a cross browser compatible dom document in javascript


var xmlDoc = null;

if (window.ActiveXObject){
	xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
	xmlDoc.async = "false";
	xmlDoc.loadXML(xmlresults);
}
else if (document.implementation && document.implementation.createDocument){
	xmlDoc= document.implementation.createDocument("","",null);
	xmlDoc.loadXML(xmlresults);
}
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}