Despite the amount of hurt your W has inflicted on you, I think it is always in the best interest of your kids if you can remain friendly, no matter what. I have seen firsthand the damage it can cause to a family when two exes cannot be more than cordial - kids get damaged by these things. On the flip side, I've seen what happens when two parents can be friendly. I know it's hard, but I think when you have kids it is important to try put your own feelings aside just a little - and therefore I think there is some purpose to being friendly with your W, whether you ever reconcile or not.