What is the procedure to register a marriage between a Shanghai citizen and a person identified as a Hong Kong citizen, Macao citizen, Taiwan citizen, Overseas Chinese or foreigner?

The registration procedure is as follows:

Primary examination (the applicants provide valid identity certificates and evidential documents - in Chinese if the original ones are in foreign language), a photo of the couple, acceptance (the applicants fill in the Declaration for Registration of Marriage), examination registration (the authority issues the marriage certificate).