You can accomplish this, if you're doing this through a browser, with a little bit of processing either in the browser or on the server. In either case, the processing you do is the same. The short story is that you use an XPath expression to extract the value of the node(s) you want to display. Here are the details: I'm going to give you details from part of an example from my soon to be available book not for name recognition, but simply because it is a good example that demonstrates the technique. Assume that you have a site that publishes book reviews - the details of each book (title, author, etc) along with book reviews reside an an XML file that has a relative simple structure. When users hit the site, they receive a page that lists all books and provides a link to the review. The page, in one part of the sample, actually not an HTML page but is an XML file that's transformed on the client using XSL (so the URL users see in the address bar ends in a file name having an XML extension). This, so far, is the first bit of processing you need to do - transform the XML document (in your case the document that contains information about the directory) into a presentable format. The next bit of processing occurs when the user clicks on a record (or book review in this example) to get the details. I made this part of the process easier for myself back in the previous step: I generated links that provide the information I need in this step to extract the information the user wants. In the sample, I generate links that point to an HTML page along with some information on the querystring, to the link I generate looks something like this: <a href="displayReview.htm?Book Title">Book Title</a> So that when the user clicks the link, displayReview.htm can extract the review from the XML file. displayReview.htm contains a little bit of JavaScript that does the following:
Extracts the text passed in on the querystring.
Creates an instance of the XML DOM.
Loads the book reviews document into the DOM.
Creates another instance of the DOM.
Loads an XSL file into the second DOM.
Builds an XPath expression that includes the book's title.
Uses the selectSingleNode method to execute the XPath query.
Uses the transformNode method to transform the resulting node into some presentable format for the end user.
Stuffs the result into the content of the HTML document.
It looks rather involved here, but it is straight-forward once you see it in actio