<?xml version="1.0" encoding="UTF-8"?>
<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:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Aaron Brazell<title>&#187; WordPress WXR Base Class</title>
</title>
	<atom:link href="http://aaronbrazell.com/tag/wordpress-wxr-base-class/feed/" rel="self" type="application/rss+xml" />
	<link>http://aaronbrazell.com</link>
	<description>Unplugged.</description>
	<lastBuildDate>Tue, 01 Jun 2010 16:27:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>WordPress WXR Class</title>
		<link>http://aaronbrazell.com/2008/01/26/wordpress-wxr-class/</link>
		<comments>http://aaronbrazell.com/2008/01/26/wordpress-wxr-class/#comments</comments>
		<pubDate>Sun, 27 Jan 2008 03:54:00 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[WordPress WXR Base Class]]></category>
		<category><![CDATA[wxr]]></category>

		<guid isPermaLink="false">http://aaronbrazell.com/?p=15</guid>
		<description><![CDATA[One of the most frustrating things to me in my years of working with WordPress and b5media has been migrating blogs into WordPress. Every blog platform does things differently and although WordPress has import support for a large number of blog platforms, it always seems like I get the job of migrating from platforms that [...]]]></description>
			<content:encoded><![CDATA[<p>One of the most frustrating things to me in my years of working with <a href="http://wwww.wordpress.org">WordPress</a> and <a href="http://www.b5media.com">b5media</a> has been migrating blogs into WordPress. Every blog platform does things differently and although WordPress has import support for a large number of blog platforms, it always seems like I get the job of migrating from platforms that <em>don&#8217;t</em> have any way of exporting posts to take to a different platform, such as WordPress.</p>
<p>I&#8217;ve done a number of these migrations now &#8211; <A href="http://nucleuscms.org/">Nucleus</a>, <a href="http://www.drupal.org">Drupal</a>, <a href="http://s9y.org/">Serendipity</a> and others. The latest was <a href="http://expressionengine.com">Expression Engine</a> &#8211; needed to move <a href="http://www.shaicoggins.com">Shai&#8217;s blog</a> over to WordPress. This was the catalyst I needed to write a <strong>base class</strong> for the WordPress import/export format known as WXR, or WordPress eXtended RSS.</p>
<p>For casual users, this is not for you. For developers, this may be a life saver for you.</p>
<p>The class can be downloaded via SVN:</p>
<p><code>svn co http://svn.aaronbrazell.com/wpwxr/trunk wpwxr</code></p>
<p>Included in this repository is the base <code>class.wxr.php</code> class along with sample code to build your own apps from.</p>
<p><strong>Reference:</strong> Complete <a href="http://aaronbrazell.com/docs/wpwxr/">WordPress WXR Base Class</a> documentation is online.</p>
<p><strong>Instantiation:</strong> This is a <strong>base</strong> class. Therefore, you should never extantiate it directly &#8211; only via another class via <em>extending</em>.</p>
<pre><code>
class myNewClass extends WXR_export {

	function myfunction()
	{
		echo "Hello World!";
	}
}</code></pre>
<p><strong>Debug mode:</strong> If you wish to use debug mode, you can set the <code>$debug</code> property of the class to true. The default is false. If debug mode is on, output will be sent to the screen as opposed the the WXR file.</p>
<p>Example:</p>
<pre><code>
$n = new myNewClass;
$n->debug = true;</code></pre>
<p><strong>Export Filename:</strong> By default, the name of the WXR file is date based (e.g wxr-2008-01-26.xml). You can change this by changing the <code>$export_filename</code> property.</p>
<pre><code>
$w = new myNewClass();
$w->export_filename = 'file-movabletype.xml';</code></pre>
<p>I&#8217;d love to get patches if you want to contribute. You should send them to emmensetech [at] gmail [dot] com. In addition, if you <em>use</em> this and create extension classes, I&#8217;m more than happy to host them. I&#8217;ll be seeding the pot with the Expression Engine class I used this weekend.</p>
<p><strong>Exporters Built</strong></p>
<ul>
<li><a href="http://aaronbrazell.com/2008/01/26/expression-engine-wxr-export-class/">Expression Engine</a></li>
</ul>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Faaronbrazell.com%2F2008%2F01%2F26%2Fwordpress-wxr-class%2F';
  addthis_title  = 'WordPress+WXR+Class';
  addthis_pub    = 'technosailor';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://aaronbrazell.com/2008/01/26/wordpress-wxr-class/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk (enhanced)
Database Caching 9/17 queries in 0.006 seconds using memcached
Content Delivery Network via aaronbrazell.wpengine.netdna-cdn.com

Served from: aaronbrazell.com @ 2010-09-09 18:20:46 -->