Some of the comments here just seem to be born out of ignorance. The solution is to marry the right person in the first place.
I don't disagree that staying together is the most desireable outcome but sometimes, that's just not possiable.
My ex-wife turned controlling after my daughter was born and created conflict at every turn. My daughter showed me affection, only when my ex-wife wasn't around. Now that I'm able to spend time with my daughter on my own outside my ex-wife's influence, my daughter shows me much more affection and is a lot more loving towards me. I know that there are some situations where divorce is the only option.
I think the solution is to love the person you marry. That is a decision you exercise enormous control over. Love--the kind that is essential for a successful marriage--is an active verb, not a passive sensation.
At the same time, I thank God every night that I was blessed or lucky enough to find the wonderful woman I am married to (thirty-one years this year). I have seen ostensibly good marriages fail that I am bewildered to understand why they failed.