Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WordPress WXR Specification

Tags:

I'm trying to find a spec for the WordPress WXR import/export standard and I'm unable to find any official documentation from WordPress on the standard.

Does anyone know of an official resource that could tell me exactly how to produce a WXR file so it will automatically import into either WordPress.com or WordPress self-hosted sites?

I'm specifically trying to create a WXR export system for an existing CMS so that users can move to WordPress easily.

like image 852
Cord Blomquist Avatar asked Feb 20 '12 04:02

Cord Blomquist


People also ask

What is WXR in WordPress?

A WXR (WordPress Extended RSS) file is a WordPress export file in XML format. WordPress has an export tool that allows you to download an XML file of information on your blog to your device storage. The XML file uses the WordPress Extended RSS format, also known as WXR.

What is a WXR?

Overview. WordPress uses something called a WXR (WordPress eXtended RSS) file to import and export site content. This article shows how to import and export this file in the panel and using WP CLI.


1 Answers

I posed this question to John O'Nolan, a WordPress core developer, who forwarded my question to core committer Aaron Jorbin. O'Nolan responded by saying (I'm paraphrasing) that there isn't any official documentation on the WXR standard, but that reverse engineering a WXR export should give me all the information I need.

O'Nolan also noted that data more complex than blog post content is likely best dealt with through a database conversion/migration, rather than an import. I tend to agree here.

I found these two links to be of some help in my effort to reverse engineer the WXR standard:

http://ipggi.wordpress.com/2011/03/16/the-wordpress-extended-rss-wxr-exportimport-xml-document-format-decoded-and-explained/

http://olalindberg.com/2008/write-your-own-wxr-file-to-migrate-custom-cms-to-wordpress/

The latter link specifically deal with attachments, something crucial for my current project.

I hope this helps anyone else who is curious about WXR.

like image 172
Cord Blomquist Avatar answered Oct 09 '22 00:10

Cord Blomquist