Code used in ArgoNavis XML course (2001, 2005, 2007)