You can break once the tag is found.