add ability to export to XML including event for third-party modules to customize the generated XML

ping @lukenm