Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The following CGI script will act as a gateway parsing the XML from the Netscape What's Related server. Given a URL, it will print out all the related URLs. In addition, it will also query the Netscape What's Related server for all the URLs related to this list of URLs and display them. From this point onward, we will refer to URLs that are related to the first set of related URLs as second-level related URLs. Figure 14.2 shows the initial query screen while Figure 14.3 illustrates the results from a sample query. Example 14.4 shows the HTML for the initial form.