Developing XML Scripts

Although it is certainly important to understand both scripting languages and the XML DOM, the best way to really understand how to develop scripts for XML is to look at some real examples. The remainder of the chapter will focus on several examples that demonstrate how to use JavaScript and XML DOM in Internet Explorer 5.0 to access and manipulate XML document data. The Movies XML document that you saw earlier in the book is used as the basis for the scripting examples. This document is shown in Listing 20.2 just in case you don't remember how it is structured.

Listing 20.2. The Movies.xml XML Document
 <?xml version="1.0" standalone="no"?> <!DOCTYPE movies SYSTEM "Movies.dtd"> <movies> <movie type="comedy" rating="PG-13" ...

Get XML Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.