X-rays are like ordinary light in that they are electromagnetic waves, and unlike it merely on account of their vastly smaller wave length. Just as some substances are opaque, for example to blue light but transparent to red light, so many substances opaque to ordinary light are transparent to X-rays.
Principles of Chemistry, The Constitution of the Atom (p. 274)