refactored XML conversion
Transaction log and event emission
Transaction log and event emission