create event XML and JAVA