The sensor in the accelerometer is a polysilicon surface-micromachined
structure built on top of a silicon wafer. The operation of the accelerometer
is unaffected by magnetic fields.
Note that the ADXL213 LCC package has a metal lid and should not be used in
strong magnetic field applications such as MRI scan. In such a case I would
recommend the ADXL322