Canada rallied to maintain a perfect record at the ice hockey world championship by beating Sweden 6-4 on Wednesday for its fourth straight victory.