An XML-based tool for automated report generation