It will fit but you'll have to open out the crankcase opening to take the barrel, you may need the 185 gearbox as well, I don't remember the details of that. Of course you can also bore out the 185 barrel to take an XR200 piston.
You can do an awful lot of swapping around on these old engines, In have a TL125 engine converted to 200 and an XL185 converted to 200 with a six-speed box that, I think, came out of a CB125RS - the ratios are the same as the XR200. I used to do loads of work on these but it was all a very long time ago.