The radiative decay of a hyperon into a light hyperon and a photon allows to study the structure of the electroweak interaction of hadrons. For this purpose, the decay asymmetry is an appropriate observable. It describes the distribution of the daughter hyperon with respect to the polarization vecP of the mother hyperon by dN/dcos(Theta)propto1+alpha∣vecP∣cos(Theta), where Theta is the angle between vecP and the momentum of the daughter hyperon. The radiative decay Xi0toLambdagamma is of particular interest since all calculations at quark level predict a positive decay asymmetry whereas two existing measurements result in a negative value of alphaLambdagamma=−0.73pm0.17. The goal of the analysis presented here was to verify these results and to improve the accuracy of the decay asymmetry measurement. In addition, the decay asymmetry of the similar decay Xi0toSigma0gamma was measured, and the well-known decay Xi0toLambdapi0 was used to test the analysis strategy. During the data taking period in 2002, the NA48/1 experiment at CERN was searching for rare KS and hyperon decays. The collected data represents the world's largest sample of Xi0 decays. From this sample, about 52,000 Xi0toLambdagamma decays, 15,000 Xi0toSigma0gamma decays and 4 mill. Xi0toLambdapi0 decays with small background were extracted as well as the corresponding antiXi decays. The available antiXi samples amount about one tenth of the Xi0 samples. The measurement of the decay asymmetries was based on the comparison between data and a detailed Monte Carlo simulation, giving the following results: alphaLambdagamma=−0.701+−0.019stat+−0.064sys, nalphaSigma0gamma=−0.683+−0.032stat+−0.077sys, alphaLambdapi0=−0.439+−0.002stat+−0.056sys, alphaantiLambdagamma=0.772+−0.064stat+−0.066sys, alphaantiSigma0gamma=0.811+−0.103stat+−0.135sys, alphaantiLambdapi0=0.451+−0.005stat+−0.057sys. The uncertainty on the Xi0toLambdagamma decay asymmetry could be reduced by a factor 3, confirming the negative value of this asymmetry and, as a result, the disagreement with the predictions of the calculations at quark level. The antiXi asymmetries have been measured for the first time, allowing to set limits on possible CP violation in Xi0 decays