yichao firstname, zeaster nickname, zhang lastname

blogsync 2.0 released, import your wordpress to blogger from rss xml file or online

It's open source now and comes with new feature.

1 project hosted:
at http://code.google.com/p/blogsync-java
blogsync 0.2 can be downloaded at
http://blogsync-java.googlecode.com/files/blogsync-0.2.zip

2 new feature:
In previous blogsync, it imports wordpress posts to blogger from your wordpress website online.
Now in blogsync 0.2, it can import wordpress posts to blogger from a rss xml file that exported by wordpress.

when blogsync 0.1, the common errors are such as:
a)[Fatal Error] :1444:21: Invalid byte 1 of 1-byte UTF-8 sequence.
org.apache.xmlrpc.client.XmlRpcClientException: Failed to parse
servers response: Invalid byte 1 of 1-byte UTF-8 sequence.
b)Fatal Error] :1:1: Content is not allowed in prolog.

this is because
a) the server response is not in utf-8 encoding. or
b) the server response is not a valid xml.

when your posts are too big, for example, http://i978.iyublog.com, when export all of this blog's posts, the exported rss xml file is 2064KB.
so when transferring these data through http online, the above errors are easy to reproduce.

Few days ago, I tried to export all posts to a rss xml file, then imports these posts locally from the exported xml file, the above error is hard to reproduce again.
the worst case is that your export file is still invalid xml file or wrong encoding, however it's easy to find these errors and you can try to export it again or edit it manually until you get a valid utf-8 xml file. Now you can import these posts to blogger from the valid utf-8 rss xml file by blogsync 2.0.

ps:
how to export your wordpress posts to a rss xml file?
in wordpress admin page, go to "Manage" page -> "Export" page, there is a link to export all of your posts.

ps2:
within 24 hours, Google allows us to submit at most 50 posts by googe data api.
so after 50 posts, the tool can not import any. only to wait for another 24 hours.

6 comments:

Coaster said...

can you guide me with this please.
I want to export from http://goldcoaster.wordpress.com to http://goodpaul.blogspot.com

If I run the run.bat it flashes quickly in a dos type box this disppears. Do I need to install something first, set something up first, edit some text..what?
please help.

zeaster said...

You should install jdk1.5.0 first.
In run.bat file, the default jdk1.5.0 path is set as:
set path=e:/jdk1.5.0/bin
If your path is different, set your jdk path in run.bat file.

HelenaN said...

I have the same problem as GoldCoaster, but I don't know how to change the path (or even where my java is). Can you help?

Thanks a lot for this!

Nash said...

I recieve an error that says "the entity name must immediately follow & in the entity reference"
Followed by "No valid post found"

What could be the problem?

zeaster said...

There must be 1+ "&" characters in ur posts, so the XML parser used in blogsync can not work properly.

replacing "&" with "&" may solve this.

see this link for reference:
http://xsd.stylusstudio.com/2001Sep/post02001.htm
or
google this:
the entity name must immediately follow & in the entity reference

Camping Supplies said...

Great info. I use an xsl fo editor. Hopefully I can take some of this info with me to it.