• I tried doing a couple of searches of the forum and didn’t find an answer to this so I thought I’d ask.

    I’m in the process of attempting to migrate off the ExpressionEngine platform to individual WP installs for the various blogs I either host or run myself. The suggested method of doing this is to use the MT Import format to make the transition, but there are two problems with that approach: 1) I lose all my tags (I’m using a tag module) and my category hierarchy is lost and 2) there’s no way to specify an email for the author of entries so when WP makes the users for the entries not authored by myself those users have no way of getting their passwords reset for their accounts.

    I thought I’d just make a template for EE that would output all the data needed for a WXR file, but I can’t seem to locate any info on what that file should consist of. So I set up a test WP install and exported a sample file. I now have an EE export template that is about 85% functional which is far from perfect. Of the 10 entries I export from EE with it WP imported 6 and screwed up their order and didn’t like the dates on some of them.

    So what I’m looking for is a detailed notation of what constitutes a WXR file. What lines are mandatory and what lines will WP fill in automatically if they’re not provided in the file. I think I can make an EE template that would work 100% if I had that info. Can anyone point me to where I might find some documentation on WXR?

    Thanks ahead of time.

Viewing 1 replies (of 1 total)
  • Disclaimer: Not a dev nor guru here, but from experience 🙂
    WordPress eXtended RSS (WXR) import involves getting following basic information below. You can download a sample XML file for importing to WP at http://wpcandy.com/articles/easier-theme-development-with-the-sample-post-collection.html and open it up.

    At the beginning of e.g. expressionengine.xml file for import to WP install

    <rss version="2.0"
    	xmlns:content="http://purl.org/rss/1.0/modules/content/"
    	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    	xmlns:dc="http://purl.org/dc/elements/1.1/"
    	xmlns:wp="http://wordpress.org/export/1.0/"
    >
    
    <channel>, <title>, <link>, <description>, <pubDate>, <generator>, <language>, <wp:wxr_version>1.0</wp:wxr_version>, <wp:base_site_url>, <wp:base_blog_url>, <wp:category><wp:category_nicename>(parent and child categories), <wp:tag><wp:tag_slug>
    
    up to just before the first <item> tag

    At the bottom of expressionengine.xml e.g. the closing

    </channel>
    </rss>

    In between, each post is within <item> and </item>

    <item>
    <title>Another Post with Everything In It</title>
    <link>http://dev.wpcoder.com/dan/wordpress/2008/09/53-revision/</link>
    <pubDate>Wed, 17 Sep 2008 22:10:16 +0000</pubDate>
    <dc:creator><![CDATA[admin]]></dc:creator>
    
    		<category><![CDATA[Child Category I]]></category>
    
    		<category domain="category" nicename="child-category-i"><![CDATA[Child Category I]]></category>
    
    		<category><![CDATA[Parent Category I]]></category>
    
    		<category domain="category" nicename="parent-category-i"><![CDATA[Parent Category I]]></category>
    
    		<category domain="tag"><![CDATA[tag1]]></category>
    
    		<category domain="tag" nicename="tag1"><![CDATA[tag1]]></category>
    
    		<category domain="tag"><![CDATA[tag2]]></category>
    
    		<category domain="tag" nicename="tag2"><![CDATA[tag2]]></category>
    
    		<category domain="tag"><![CDATA[tag5]]></category>
    
    		<category domain="tag" nicename="tag5"><![CDATA[tag5]]></category>
    
    <guid isPermaLink="false">http://dev.wpcoder.com/dan/wordpress/2008/09/53-revision/</guid>
    <description></description>
    <content:encoded><![CDATA[]]></content:encoded>
    <excerpt:encoded><![CDATA[]]></excerpt:encoded>
    <wp:post_id>54</wp:post_id>
    <wp:post_date>2008-09-17 17:10:16</wp:post_date>
    <wp:post_date_gmt>2008-09-17 22:10:16</wp:post_date_gmt>
    <wp:comment_status>open</wp:comment_status>
    <wp:ping_status>open</wp:ping_status>
    <wp:post_name>53-revision</wp:post_name>
    <wp:status>inherit</wp:status>
    <wp:post_parent>53</wp:post_parent>
    <wp:menu_order>0</wp:menu_order>
    <wp:post_type>revision</wp:post_type>
    <wp:post_password></wp:post_password>
    </item>

    Further assistance can also be found at
    http://codex.wordpress.org/IRC
    http://codex.wordpress.org/WordPress_IRC_Live_Help

Viewing 1 replies (of 1 total)
  • The topic ‘Detailed notation of WXR file?’ is closed to new replies.