We analyzed two XMM-Newton observations in the direction of the high density, high latitude, neutral hydrogen cloud MBM20 and of a nearby low density region that we called the Eridanus hole. The cloud MBM20 is at a distance evaluated between 100 and 200 pc from the Sun and its density is sufficiently high to shield about 75% of the foreground emission in the 3/4 keV energy band.The combination of the two observations makes possible an evaluation of the OVII and OVIII emission both for the foreground component due to the Local Bubble,and the background one, due primary to the galactic halo.The two observations are in good agreement with each other and with ROSAT observations of the same part of the sky and the OVII and OVIII fluxes are OVII=3.89+/-0.56 photons cm^-2 s^-1 sr^-1, OVIII=0.68+/-0.24 photons cm^-2 s^-1 sr^-1 for MBM20 and OVII=7.26+/-0.34 photons cm^-2 s^-1 sr^-1,OVIII=1.63+/-0.17 photons cm^-2 s^-1 sr^-1 for the Eridanus hole. The spectra are in agreement with a simple three component model, one unabsorbed and one absorbed plasma component, and a power law, without evidence for any strong contamination from ion exchange in the solar system. Assuming that the two plasma components are in thermal equilibrium we obtain a temperature of 0.096 keV for the foreground component and 0.197 keV for the background one. Assuming the foreground component is due solely to Local Bubble emission we obtain a lower and upper limit for the plasma density of 0.0079 cm^-3 and 0.0095 cm^-3 and limits of 16,200 cm^-3 K and 19,500 cm^-3 K for the plasma pressure, in good agreement with theoretical predictions. Similarly, assuming that the absorbed plasma component is due to Galactic halo emission, we obtain a plasma density ranging from 0.0009 cm^-3 to 0.0016 cm^-3, and a pressure ranging from 3.0*10^3 to 6.7*10^3 cm^-3 K.