Under the optimized conditions of the adsorption behavior of the prepared chitosan and chitosan film towards calcium and magnisium ions mentioned above, the calcium and magnisium content of the tested real samples were treated with prepared chitosan and chitosan film similarly to the previous reported procedures.