i found out the problem. forgot to mention that the file importing were split into parts,
wordpress.xml.1, wordpress.xml.2 etc
the original export file was split up, randomly cut and paste into a new part
uploading each part in worked in v2.3.1,
but in v2.5 i could upload part 1, but would get the error message for part 2 and so on.