Lighting moves in "steps," and after each step x-rays are released. No one knows why or how -- lighting is too cold to create x-rays. How can we possibly not understand this? We have so much technology and we don't know how friggin' lightning works?
http://www.livescience.com/technology/080717-lightning-mystery.html