That's not exactly difficult. Particle accelerators are all over these days, from medical applications(radiotherapy with liniacs) to materials inspection(portable cyclotrons).
X-ray producing synchrotrons are generally pretty large and expensive. There has been thoughts of using them for lithography and microfabrication in the past (see LIGA) that haven't really panned out. There are companies working on more advanced laboratory sources, but mostly for analytical applications (EasyXAFS, Sigray). There is a company working on a lab scale synchrotron (lyncean tech).