I can echo this. I spent 3-4 months begging, buy flowers, being amazing, while XW flip-flopped back and forth from being a b-word to being somewhat sweet.
Then I finally found myself through DBing, and started working out, got a new hairstyle, lost 25 pounds, became happy, moved on.
I even met a nice girl I was chatting with, and all of a sudden, XW who was having an A, realized I was happy and content, and was SUPER angry that I was happy and awesome - she came jumping back in.
I can't say that'll be your path, but the only thing you can focus on is making you be the best you that you can be... The best thing someone told me was that you can only control what your arms can reach.