A Dynamic Index: Reinventing the Online Help in XML

This MSDN article describes a method for generating a Table of Contents from xml tags embedded in each document. While the article focuses on creating a TOC for online help, the techniques potentially have a wider application. The article includes a downloadable set of files that demonstrate the technique.