Updating XML Parse method in order to increase performance