In Microsoft Internet Explorer we can use Msxml2.DOMDocument.6.0 activeX component
to do xslt based transformation using the transformNode() method. We can load an xml
or xslt by the following method :
var activeX = new ActiveXObject("Msxml2.DOMDocument.6.0");
activeX.load('webdirectories/xml/somefile.xml');
but can we load an xml by providing the xml as a string variable instead of providing the
location of the xml file? something like this-
var xmlFileContents = '<?xml version="1.0"?><books> .... </books>';