Wait!

Lifetime licenses are only available for a short time, don't miss out!

Any File Type

No need to reorganize your data, just upload your file to WP All Import and it'll sort it out.

Complete Customization

Granular control over every single piece of data. Think your import is too complicated? Think again.

Import Huge Datasets

It doesn't matter how big your site is or how much data you need to import, WP All Import can handle it. 

Multilingual Imports

Importing data to multilingual sites has never been easier, with support from the WPML team.

Scheduled Imports

Run imports automatically on a schedule. Subscribe to our point and click scheduling service, or set up cron jobs.

Developer Friendly

Write and test PHP right inside WP All Import when setting up your import, with tons of snippets to get you started.
@glitzformals
"This plugin is a game changer for my situation. I’m stunned at how fast and effortless the import process is."
@adatfalo
"I have never experienced such a quick and helpful support experience with any plugin, and by the way, the knowledge of the support colleagues is professional!"
@jessedw44
"Even if you just use this plugin once, it will save you time. If you work on several sites its invaluable. Constantly developed, and continuously supported. Great job."
90-Day Guarantee
Not 100% happy? Let us know and we’ll promptly send you a refund.
Free Updates For Life
Pay once for unlimited installs, even client sites. No renewal fees.
Fast, World Class Support
Over 9 years experience with WordPress imports and exports.
Now is your last chance to buy a lifetime license before we switch to annual pricing. Existing licenses will be unaffected.
Read More

Export WordPress to XML

To create an XML feed go to WP All Export › New Export and choose the type of data to export. Drag and drop to select your data, rearrange XML elements, rename them, and customize your feed.

Custom XML vs. Simple XML

With the Simple XML Feed option you drag and drop to rearrange the XML elements. You can change the element names, but true customization is not really possible.

With the Custom XML Feed builder, you literally write out the XML feed by hand. You can nest elements as deep as you want, add elements outside of the looping post element, create custom loops with PHP functions, and more.

This guide covers Simple XML Feed exports, which are sufficient for most uses.

XML Sucks, but WP All Export Makes It Easy

XML stands for Extensible Markup Language. It was designed in 1998 by a group of sadists with the goal of being both human-readable and machine-readable. It often fails on both accounts.

Here's a simple XML export of the default first post created by WordPress:

With a simple XML export you don't have actually write or touch the XML at all.

Export WordPress data to XML

By default, WP All Export generates a CSV file. To change that, go to Export Type › Feed and select Simple XML Feed.

In the Advanced Options section, you can make a variety of changes:

  • Root XML Element: This is the first XML element that all others are nested inside. In the example above, that would be the <data> element.
  • Single Post XML Element: This is the XML element for each record. In the example above, that would be the <post> element.
  • Enable CDATA tags: Some characters in the data you're exporting might look like XML. CDATA tags are used to distinguish data that could be interpreted as XML markup, but should not be.

Multiple Elements per Field

When your export contains many elements in the same field, they use pipe characters (|) as a separator. For example, multiple images from a WooCommerce product's gallery:

Any exported field that has more than 1 value will have those values separated by a pipe character by default. Here's how a custom field with several values gets exported:

Custom XML Exports

Simple XML feeds can be very limited when it comes to modifying the structure of the data or adding special data into the XML export. Some exports may require special nesting or a different XML structure.

If you need a different XML format, you can use the Custom XML Feed option.


Related Docs

Drag and drop to create a spreadsheet with your WordPress data. CSV or Excel.

Use a powerful templating engine to create custom WordPress XML exports.

Learn more about the different types of WordPress data you can export.

Lifetime support. Lifetime updates. Pay once.

Packages
Standalone
Import
Pro Package
$249
one-time
  • Import Pro
Import Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
  • Types
  • Export Pro
Export Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
Add to Cart
90 Day Money Back Guarantee
Import + Export Pro Package
$299
one-time
  • Import Pro
Import Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
  • Types
  • Export Pro
Export Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
Add to Cart
90 Day Money Back Guarantee
WooCommerce Import Package
$149
one-time
  • Import Pro
Import Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
  • Types
  • Export Pro
Export Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
Add to Cart
90 Day Money Back Guarantee
Import Standalone
$99
one-time
  • Import Pro
Import Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
  • Types
  • Export Pro
Export Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
Add to Cart
90 Day Money Back Guarantee
Import + Export Standalone
$169
one-time
  • Import Pro
Import Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
  • Types
  • Export Pro
Export Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
Add to Cart
90 Day Money Back Guarantee
Export Standalone
$99
one-time
  • Import Pro
Import Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
  • Types
  • Export Pro
Export Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
Add to Cart
90 Day Money Back Guarantee
cross