Multi-Content Revisions/Dumps
This page is part of the MCR documentation
The XML dump format has changed to accommodate multiple slots per revision (XML schema version 0.11).
- Some information that used to be associated with the revision is now also associated with each slot.
- We tried to avoid breaking changes.
- For import, MediaWiki should support the old as well as the new format.
<mediawiki>
<page>
<revision>
<!-- existing id/timestamp/etc for revision data -->
...
<!-- existing fields for main slot -->
<model>wikitext</model>
<format>text/x-wiki</format>
<text bytes="1234" sha1="...">....</text>
<sha1>...</sha1> <!-- revision sha1, may be different from text sha1 -->
<!-- additional slots -->
<content>
<slot>filemetadata</slot>
<model>metadata</model>
<format>text/json</format>
<text bytes="123" sha1="...">...</text>
</content>
</revision>
</page>
</mediawiki>