its so incredibly overkill for XC riding, it has like 8 inches of travel. its going to be very heavy and inefficient on climbs. its got downhill geometry.
i suppose you can ride anything XC though. you'd be better off spending a few hundred bucks on a used hardtail in my opinion.