Skip to content
This repository
Browse code

Merge pull request #16 from Zenithar/master

Some fixes to import hosted wordpress 3.1
  • Loading branch information...
commit 1995fc8bdb417820222471f4d99d07d951f5d85c 2 parents 52e737e + 9f4259f
Thomas Frössman authored

Showing 2 changed files with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 2  README.rst
  2. 3  exitwp.py
2  README.rst
Source Rendered
@@ -13,6 +13,8 @@ Getting started
13 13
  * `Download <https://github.com/thomasf/exitwp/zipball/master>`_ or clone using ``git clone git://github.com/thomasf/exitwp.git``
14 14
  * Export one or more wordpress blogs using the wordpress exporter under tools/export in wordpress admin.
15 15
  * Put all wordpress xml files in the ``wordpress-xml`` directory
  16
+ * Special note for Wordpress 3.1, you need to add a missing namespace in rss tag : ``xmlns:atom="http://www.w3.org/2005/Atom"``
  17
+ * Run xmllint on your export file and fix errors if there are.
16 18
  * Run the converter by typing ``python exitwp.py`` in the console from the directory of the unzipped archive
17 19
  * You should now have all the blogs converted into separate directories under the ``build`` directory
18 20
 
3  exitwp.py
@@ -53,7 +53,8 @@ def parse_wp_xml(file):
53 53
         'content':"{http://purl.org/rss/1.0/modules/content/}",
54 54
         'wfw':"{http://wellformedweb.org/CommentAPI/}",
55 55
         'dc':"{http://purl.org/dc/elements/1.1/}",
56  
-        'wp':"{http://wordpress.org/export/1.1/}"
  56
+        'wp':"{http://wordpress.org/export/1.1/}",
  57
+        'atom':"{http://www.w3.org/2005/Atom}"
57 58
     }
58 59
 
59 60
     tree=ElementTree()

0 notes on commit 1995fc8

Please sign in to comment.
Something went wrong with that request. Please try again.