Skip to content

Instantly share code, notes, and snippets.

@iwek
Created October 30, 2012 01:43
Show Gist options
  • Save iwek/3977831 to your computer and use it in GitHub Desktop.
Save iwek/3977831 to your computer and use it in GitHub Desktop.
Simple WordPress Import Structure XML Example
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0"
xmlns:excerpt="http://wordpress.org/export/1.2/excerpt/"
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.2/"
>
<channel>
<wp:wxr_version>1.2</wp:wxr_version>
<wp:author></wp:author>
<item>
<title>Test 1</title>
<description></description>
<content:encoded><![CDATA[Test Post 1]]></content:encoded>
<excerpt:encoded><![CDATA[]]></excerpt:encoded>
<wp:status>publish</wp:status>
<wp:post_type>post</wp:post_type>
<category domain="post_tag" nicename="redy"><![CDATA[redy]]></category>
<category domain="category" nicename="teory"><![CDATA[Teory]]></category>
<category domain="category" nicename="tree"><![CDATA[Tree]]></category>
</item>
<item>
<title>Test 2</title>
<description></description>
<content:encoded><![CDATA[Test Post 2]]></content:encoded>
<excerpt:encoded><![CDATA[]]></excerpt:encoded>
<wp:status>publish</wp:status>
<wp:post_type>post</wp:post_type>
<category domain="category" nicename="test-category"><![CDATA[Test Category]]></category>
</item>
</channel>
</rss>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment