Added a util method to deserialize a xml