I have developed a theme and had to export all contents via the exporter. Now when i import them via the importer plugin the posts etc get imported but there is an error importing media. Could you please help me out?
Here is a screenshot:
Admittedly, this is a guess.
If your images are not available-- not accessible for download-- the importer cannot access the server where the images are stored, you will get upload failures. I am guessing that that is what is happening. Perhaps, the old server is refusing connections, or DNS is preventing access, or the old site has been taken down.
If it is a DNS problem, you should be able to solve it by editing the XML file to replace the domain name with the numeric server IP. Untested, but can't think of why that wouldn't work.
If the site has been taken down, I hope you have backups of the images somewhere.