Divorce court should be your LAST resort. After all, do you want a complete stranger in a black robe deciding the fate of your future? You do not want a judge to decide where your children will live, how much time you get to spend with them, or deciding your financial future. Once you go to court you lose the control.
There are ways to stay out of the courtroom. Sitting down with your ex to work out as many issues as possible will help facilitate a settlement. Sound too easy (or maybe too difficult, if coming to agreements with your ex seems to be a difficult feat), enlist in the help of a Collaborative attorney.