An x-ray tool for determining a characteristic of an oilfield fluid. The tool may include a generator portion housing a collimator about a target from which x-rays are emitted. In this manner x-rays may be attenuated right at the target such that a majority of shielding otherwise necessary for safety concerns may be eliminated. Rather, by employing the target within the collimator, shielding of the generator may be limited to a single shielding plate within the generator portion that is positioned parallel to the target at the opposite end of an x-ray tube therebetween. As a result of this configuration, an x-ray tool for analysis of oilfield fluids may be provided with a minimum weight of shielding material. Thus, hand-held user friendly embodiments may be safely employed at the oilfield.