We present an X-ray analysis and a model of the nonthermal emission of the pulsar wind nebula (PWN) MSH15-52. We analyzed XMM-Newton data to obtain the spatially resolved spectral parameters around the pulsar PSRB1509-58. A steepening of the fitted power-law spectra and decrease in the surface brightness is observed with increasing distance from the pulsar. In the second part of this paper, we introduce a model for the nonthermal emission, based on assuming the ideal magnetohydrodynamic limit. This model is used to constrain the parameters of the termination shock and the bulk velocity of the leptons in the PWN. Our model is able to reproduce the spatial variation of the X-ray spectra. The parameter ranges that we found agree well with the parameter estimates found by other authors with different approaches. In the last part of this paper, we calculate the inverse Compton emission from our model and compare it to the emission detected with the H.E.S.S. telescope system. Our model is able to reproduce the flux level observed with H.E.S.S., but not the spectral shape of the observed TeV {gamma}-ray emission.