Add Events for XML parsing