Parsing xml events