XML_Lab_9_solutions

XML_Lab_9_solutions -...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
HIT3693 XML Technologies Exercise 9 SOLUTIONS 3. Data Access <html> <body> <script type="text/vbscript"> set xmlDoc=CreateObject("Microsoft.XMLDOM") xmlDoc.async="false" xmlDoc.load("catalog.xml") document.write("CD by Bob Dylan:" & "<br />") for each x in xmlDoc.getElementsByTagName("ARTIST") if x.text="Bob Dylan" then document.write(x.parentNode.childNodes(0).tagName & ":" &
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: x.parentNode.childNodes(0).text & "<br />") document.write(x.parentNode.childNodes(4).tagName & ":" & x.parentNode.childNodes(4).text & "<br />") document.write(x.parentNode.childNodes(5).tagName & ":" & x.parentNode.childNodes(5).text & "<br />") else end if next </script> </body> </html>...
View Full Document

This note was uploaded on 09/25/2010 for the course HIT 3693 taught by Professor Freddy during the Three '10 term at Swinburne.

Ask a homework question - tutors are online