<script> loadxml(‘testfile.xml’); </script>
var xmlfile = new ActiveXObject("Microsoft.XMLDOM");
In the above code, the variable ‘xmlfile’ is defined as an XML ActiveX object. The file name parameter, testfile.xml, is passed into the code and stored in the variable ‘xmlsource’ by calling the function loadxml. The file is then loaded into the XML object, and inbuilt functions are used to manipulate the data.