Japan battled Sweden in the quarter finals at the FIFA Women's World Cup with the winner advancing to take on Spain in the semis.