Taiwan saw off China before and retains resolve to defend itself, president says