The following error is reported when importing a 6mb xml file which was exported earlier from Wordpress:

* warning: XMLReader::read() [xmlreader.read]: /Users/Steven/Sites/acquia-drupal/sites/default/files/wordpress/wordpress.2010-06-14.xml:3724: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0x0C 0x3C 0x2F 0x61 in /Users/Steven/Sites/acquia-drupal/modules/wordpress_import/wordpress_import.module on line 1424.
* warning: XMLReader::read() [xmlreader.read]: //36670.14ww.jatsu.pl" rel="nofollow">contact dermatitis more condition_symptoms in /Users/Steven/Sites/acquia-drupal/modules/wordpress_import/wordpress_import.module on line 1424.
* warning: XMLReader::read() [xmlreader.read]: ^ in /Users/Steven/Sites/acquia-drupal/modules/wordpress_import/wordpress_import.module on line 1424.
* warning: XMLReader::read() [xmlreader.read]: An Error Occured while reading in /Users/Steven/Sites/acquia-drupal/modules/wordpress_import/wordpress_import.module on line 1424.
* This file does not appear to be a valid WXR file. The file is either corrupted or invalid XML. In some versions of WordPress, the export function can produce malformed XML. Please see README.txt (included in the module archive) for further guidance.

CommentFileSizeAuthor
#5 wordpress.2010-09-09.test.txt193.59 KBocularinvasion

Comments

kits’s picture

Version: 6.x-2.x-dev » 6.x-2.1
Assigned: Unassigned » kits

I have the similar issue. Pls help..

* warning: XMLReader::read() [xmlreader.read]: /home/newswing/public_html/drupkits/sites/default/files/wordpress/wordpress.2010-06-23_FIXED.xml:2644: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xE0 0x0D 0x0A 0xA4 in /home/newswing/public_html/drupkits/sites/all/modules/wordpress_import/wordpress_import.module on line 1424.
* warning: XMLReader::read() [xmlreader.read]: ? ?????? ???? ??? ??? ?? ????? ? in /home/newswing/public_html/drupkits/sites/all/modules/wordpress_import/wordpress_import.module on line 1424.
* warning: XMLReader::read() [xmlreader.read]: ^ in /home/newswing/public_html/drupkits/sites/all/modules/wordpress_import/wordpress_import.module on line 1424.
* warning: XMLReader::read() [xmlreader.read]: An Error Occured while reading in /home/newswing/public_html/drupkits/sites/all/modules/wordpress_import/wordpress_import.module on line 1424.
* This file does not appear to be a valid WXR file. The file is either corrupted or invalid XML. In some versions of WordPress, the export function can produce malformed XML. Please see README.txt (included in the module archive) for further guidance.

viil’s picture

I experienced the same in connection with errors for atom links. After removing the atom links in the XML file these error messages went away, so I just assumed they were connected.

lavamind’s picture

Assigned: kits » lavamind
Status: Active » Postponed (maintainer needs more info)

I've never encountered this UTF-8 encoding error. Could you please attach the wordpress export file in question, so I can look at it?

bgogoi’s picture

Same problem here with (exported xml file from WP latest version).

ocularinvasion’s picture

StatusFileSize
new193.59 KB

I'm also having this issue with Wordpress Import 6.x-2.1 and 6.x-2.x-dev and Wordpress 3.0 and 3.0.1. I've attached the xml file I've been trying to import (renamed as a txt so it could be attached here).

This is the error I get.

* warning: XMLReader::read() [xmlreader.read]: /homepages/14/d302732983/htdocs/Neff Site/temp_new_site/sites/default/files/wordpress/wordpress.2010-09-09.test.xml:1054: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0x06 0x39 0x06 0x31 in /homepages/14/d302732983/htdocs/Neff Site/temp_new_site/sites/all/modules/wordpress_import/wordpress_import.module on line 1442.
* warning: XMLReader::read() [xmlreader.read]: in /homepages/14/d302732983/htdocs/Neff Site/temp_new_site/sites/all/modules/wordpress_import/wordpress_import.module on line 1442.
* warning: XMLReader::read() [xmlreader.read]: ^ in /homepages/14/d302732983/htdocs/Neff Site/temp_new_site/sites/all/modules/wordpress_import/wordpress_import.module on line 1442.
* warning: XMLReader::read() [xmlreader.read]: An Error Occured while reading in /homepages/14/d302732983/htdocs/Neff Site/temp_new_site/sites/all/modules/wordpress_import/wordpress_import.module on line 1442.
* This file does not appear to be a valid WXR file. The file is either corrupted or invalid XML. In some versions of WordPress, the export function can produce malformed XML. Please see README.txt (included in the module archive) for further guidance.

The attached file was made unreadable as it contains private data (3rd party email addresses). GK

ocularinvasion’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

I didn't realize this was giving me a line number from my xml file.

* warning: XMLReader::read() [xmlreader.read]: /homepages/14/d302732983/htdocs/Neff Site/temp_new_site/sites/default/files/wordpress/wordpress.2010-09-09.test.xml:1054: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0x06 0x39 0x06 0x31 in /homepages/14/d302732983/htdocs/Neff Site/temp_new_site/sites/all/modules/wordpress_import/wordpress_import.module on line 1442.

On line 1054 of my xml file, I noticed some weird characters "ÿþ". I deleted those and now it works fine.

rodmarasi’s picture

is this issue is fixed for real? because recently i get the same problem and still no solution to it:

warning: XMLReader::read() [xmlreader.read]: file:///D:/xampp/tmp/wordpress.2011-01-24%20(1).xml:46: namespace error : Namespace prefix atom on link is not defined in D:\xampp\htdocs\mastersite\sites\all\modules\wordpress_import\wordpress_import.module on line 1593.
warning: XMLReader::read() [xmlreader.read]: hdescription+xml" href="http://matrodi80.wordpress.com/osd.xml" title="My Blog" in D:\xampp\htdocs\mastersite\sites\all\modules\wordpress_import\wordpress_import.module on line 1593.
warning: XMLReader::read() [xmlreader.read]: ^ in D:\xampp\htdocs\mastersite\sites\all\modules\wordpress_import\wordpress_import.module on line 1593.
warning: XMLReader::read() [xmlreader.read]: file:///D:/xampp/tmp/wordpress.2011-01-24%20(1).xml:47: namespace error : Namespace prefix atom on link is not defined in D:\xampp\htdocs\mastersite\sites\all\modules\wordpress_import\wordpress_import.module on line 1593.
warning: XMLReader::read() [xmlreader.read]: in D:\xampp\htdocs\mastersite\sites\all\modules\wordpress_import\wordpress_import.module on line 1593.
warning: XMLReader::read() [xmlreader.read]: ^ in D:\xampp\htdocs\mastersite\sites\all\modules\wordpress_import\wordpress_import.module on line 1593.
warning: XMLReader::read() [xmlreader.read]: An Error Occured while reading in D:\xampp\htdocs\mastersite\sites\all\modules\wordpress_import\wordpress_import.module on line 1593.
This file does not appear to be a valid WXR file. The file is either corrupted or invalid XML. In some versions of WordPress, the export function can produce malformed XML. Please see README.txt (included in the module archive) for further guidance.

any idea how solve this problem?

lavamind’s picture

You need to delete lines 46 and 47 of your Wordpress XML file. All this is explained in the README!

drupizzle’s picture

Not everybody has the same line #'s that need to be removed. Saying lines 46 & 47 is specific to your wordpress file. Remove the atom lines and it will work fine.

carebbean’s picture

drupaldnc:

What do "atom lines" look like?

I was able to export from WordPress but received the same "invalid XML file" complaint when attempting ti import into Drupal 6X.

Blessings
carebbean