fixed up xml sent from server so it is easier to parse