Depends.
Many radios look very similar but you have to look closely at the mounting points.
Just cause the connectors in the back look the same, the black and gray ones, it does not mean it will bolt up.
The radio in mine is definitely not out of an XJ. Could be a ZJ, Dodge truck, or any of the Mopars mini vans.