Swapnil Raut USC Id: 7949902200 CSCI 571 HW4 (XML and DOM) Version1 Status on completion: The code works fine on both Browsers for the given structure of xml file. I have used getElementsByTagName to get the appropriate collections whereever required, but this function doesnt seem to work when I pass a variable to it. As a Result, my code runs for the xml file with given DTD. The pdf write up mentions "Your task is to write a program that transforms this structure into HTML, where first level tags contain the results for each sport and the first tag at the second level for each Result will have the name of the Sport in the tag name" e.g.Swimming. I Think I misunderstood this statement and made my code work only for the DTD given in this document. This is not the case with loading headers to table. This is done dynamically. Addition Notes for grading: Browser Dependencies: For Internet Explorer: I have tested the code on the server without any change to the IE security settings and works fine. In the case of any problem regarding Jscript, I would appreciate it if you could do the following steps and then recheck: Intenet Tools-> Advanced -> security -> Check the row that says "allow Active Content to Run in Files" Another strange thing that took quite a lot of time was the XML file validation. For some reason, the validation results do not get displayed in a popped up window every time you test the errors.xml file. As an alternative, I am using an alert box. I am aware that this may cause reduction in points, but I just wanted you to know that I tried but couldnt figure it out, so any concession would be most welcome! For Mozilla FireFox No Problem! References used: I learnt a lot from w3schools.com and have mentioned the website name whereever necessary in my code. ------------------------------------------------------------------------------------------------------------------------------------------------------------