December 1999
Intermediate to advanced
992 pages
22h 3m
English
The following example, listing 23.5, accesses movies.xml and looks for the titles of all the movies of the type comedy. Note that the DTD decrees that title must be the first child of movie:
<!ELEMENT movie (title, writer+, producer+, director+, actor*, poster?, comments?)>
Thus, your coding is much simplified.
Listing 23.5 writes out the titles of all the comedy movies in movies.xml.
<html> <head> <title>Accessing XML files</title> </head> <body bgcolor="white"> <h3 align ="center"> Opening movies.xml as a dom object</h3> <% dim xmlString 'line10 dim oXMLDOM dim oXMLfile set oXMLDOM=server.CreateObject("Microsoft.XMLDOM") oXMLDOM.load("c:\samsbook\movies.xml") ... |
Read now
Unlock full access