DNA compaction can be caused by multivalent ions as condensing agents. Both discontinuous (all-or-none) and continuous (pearl-necklace structure) transitions have been observed in experiments as the concentration of the condensing agent was increased. We have investigated the DNA transition by analytical calculations in the infinite-chain limit. A mechanism for pearl-necklace structures could be a combinatorial entropy term, which favours a mixture of globules and coils in a single chain. However, when a surface term is taken into account, it gives rise to a discontinuous transition. We also consider the role of surface charges on the globule.