3d atomistic document properties

Is there any simple way, for a structure determined in a 3d atomistic document (.xsd file), to get information on the composition (the number of atom of each type: C, O, ...) and the total mass?