added another function ParseLEgalAttributesUntilTagEndOrDie which incorporates ParseLegalAttributeEndOrDie and is used when the menu identification attribute is not found