I've had an 06 xB for 6 years and it's been great. My biggest repair was a $450 tune-up/ignition coil replacement, but that was due to lack of regular maintenance on my part. If you do all the oil changes etc when they need to be done it should be fine.
There is an issue with the windshields though. They're more prone to cracking than usual. Mostly cosmetic, but something to be aware of.