xml-based events working