read xap file