This is the final sample from my TechEd presentation.  It's an event that captures the Project Published.  When the event is triggered, the project being published is read, then output as an Xml file.