Replies: 6 comments 2 replies
-
Adding these links for helpful further reading on the history of importing in WordPress, and some other thoughts: |
Beta Was this translation helpful? Give feedback.
-
Having collaborated with @pento on this a few years ago, we created a WXZ format which is a ZIP file consisting of JSON files for posts, authors, categories etc.. Such a ZIP file could also contain media. At the time I created these pieces of code: |
Beta Was this translation helpful? Give feedback.
-
the XML format of WXR surely feels tired to people used to JSON serialization, and it's certainly easier to avoid text-encoding issues in JSON since there are universal serializers people use instead of relying on WXR, by means of being XML, is inherently and conveniently extensible. although most WXRs mainly consist of post contents, the format could be extended to provide clarity around what structure is possible. the serialization is a big ugly, but XML writers and readers are fairly ubiquitous, including streaming parsers. while I think there's good value to be gained with the explorations using a ZIP of an entire site as the export/archive format, I still find that the WXR could continue to play a strong role when paired with that. it's not a good format for storing binary data from
some ancillary meta could aid in exports and site transfers
Many of these ideas equally apply to a JSON format, but given the existing wealth of WXR content and the fact that extensions to it should be safely ignored by legacy parsers, it seems worth embracing and extending before giving up on it. the WXR format is amenable also to streaming from inside a ZIP file. I have my own goals for porting the design of the HTML API into a new XML API so that all WordPresses will have their own spec-compliant streaming XML parser. when that time comes, we could directly import a ZIP'd WXR without unpacking it and do so within an arbitrary maximum memory limit |
Beta Was this translation helpful? Give feedback.
-
To really lean into the idea of Data Liberation, let's ensure that folks can also use the exports to migrate off WordPress. |
Beta Was this translation helpful? Give feedback.
-
Pulling in this comment from the Make blog post about Data Liberation...
|
Beta Was this translation helpful? Give feedback.
-
Hi everyone, glad to see the focus on data migration right now in the WordPress community. If there's a ZIP-based WXR replacement, is there an opportunity to coordinate with #51? The Blog Archive format (.bar) is just a ZIP file with HTML, JSON, and media. When I originally proposed it, the goal was something generic that could be used with any platform, but there could be a WordPress flavor of it that added WordPress-specific data, like settings, which plugins are installed, etc. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
WXR (WordPress eXtended RSS) has been around for a while - and it's done a good job. But there's certainly room for improvement. Especially when it comes to including media/attachments and certain other things.
This is particularly worth considering in light of Matt's original announcement stating:
So let's discuss. What could make WordPress' export format better for everyone?
Beta Was this translation helpful? Give feedback.
All reactions