Generic deserializeXml method