





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






Figure 1. Initial web page
http://www-scf.usc.edu/~csci571/2008Fall/hw4/olympics.xml
Figure 2. Selection list and “Show Sport Events” button generated after processing olympics.xml
Figure 4. Table containing event winner details shown after clicking “Show Event” Winner button
Figure 5. Page generated from error.xml
http://www-scf.usc.edu/~csci571/2008Fall/hw4/error.xml
Figure 6. Error generated from error.xml in Firefox
http://msdn.microsoft.com/library/default.asp?url=/library/en- us/xmlsdk/html/a09c098b-7e5a-45ff-b5ad-bc910f736a3f.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en- us/xmlsdk/html/e94d1cdf-3d7f-4ac0-8c51-a17d2801519c.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en- us/xmlsdk/html/d051f7c5-e882-42e8-a5b6-d1ce67af275c.asp
** ... ... .. . ... ... ... **
**... ** **... ** **... ** .. . **... ** **... ** **...
... **
mynodes=xmlDoc.documentElement.childNodes;
myNodeList= mynodes.item(i).childNodes; if (myNodeList.item(j).nodeType==ELEMENT_NODE)
html_text="XML Result"; hWin.document.write(html_text);
if(xmlDoc.documentElement.hasChildNodes()) { // do stuff } for (j=0;j