Sweden held on for a 3-2 victory over Latvia in quarterfinal action Thursday at the world junior hockey championship.