APPX packages are apps for Windows Phone 8.1 and later, whilst XAP packages were used up until Windows Phone 8. It doesn't seem to be possible to convert xap to appx , that's something the developer of the app could do if he would release two versions for both Windows Phone 8 and 8.1.
Open XAP file Open APPX file