Sportsters are about as rock-solid and dependable as ever you could hope for in a bike. They lend themselves well to customization, and have a broad range of aftermarket support. You should have no problem getting parts for it for many, many years down the road.
If it's a "good" bike or not, I guess depends on what you want it to be good for.
I had a fantastic 2005 Sportster 883R, the one with the dual disk front and a few other factory differences between the normal 883 for the year. Mine had the Screaming eagle, stage 1 kit, longer and heavier progressive rear shocks, the Sportster 'Custom' 4.5 gallon tank and matching seat and engine guards with highway pegs. It was so clean you could eat off of it if so inclined.
The XR1200 is quite different from the run of the mill Sportster: